Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL ITS
docker-ci
Commits
4625c821
Commit
4625c821
authored
5 years ago
by
Jose Raul Barreras
Browse files
Options
Downloads
Patches
Plain Diff
update to v5.2.1
parent
5ff91c55
No related branches found
No related tags found
1 merge request
!33
Resolve "Integrate dependency-check container with Sonarqube"
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
dependency-check/Dockerfile
+7
-7
7 additions, 7 deletions
dependency-check/Dockerfile
dependency-check/docker-entrypoint.sh
+34
-0
34 additions, 0 deletions
dependency-check/docker-entrypoint.sh
with
42 additions
and
8 deletions
README.md
+
1
−
1
View file @
4625c821
...
...
@@ -25,4 +25,4 @@ This file is automatically updated after execute `git commit` based on the conte
-
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:android
-
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:latest
-
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:php
-
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:python
\n
\n\n\r
_Last update:
Wed
Sep 1
8
1
5:39:4
0 CDT 2019_
\n
-
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:python
\n
\n\n\r
_Last update:
Thu
Sep 1
9
1
6:28:1
0 CDT 2019_
\n
This diff is collapsed.
Click to expand it.
dependency-check/Dockerfile
+
7
−
7
View file @
4625c821
...
...
@@ -12,8 +12,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0" \
maintainer="J.R. Barreras <rbarrerasmilanes@nebraska.edu>"
#ENV DEPENDENCY_CHECK_VERSION 4.0.2-release
ENV
DEPENDENCY_CHECK_VERSION 5.0.0-M3-release
ENV
DEPENDENCY_CHECK_VERSION 5.2.1-release
WORKDIR
/opt
...
...
@@ -22,15 +21,16 @@ RUN apk add --no-cache curl jq su-exec && \
curl
--insecure
-o
./dependency-check.zip
-L
https://dl.bintray.com/jeremy-long/owasp/dependency-check-
${
DEPENDENCY_CHECK_VERSION
}
.zip
&&
\
unzip dependency-check.zip
&&
\
rm
dependency-check.zip
&&
\
/opt/dependency-check/bin/dependency-check.sh
--updateonly
/opt/dependency-check/bin/dependency-check.sh
--updateonly
&&
\
ln
-s
/opt/dependency-check/bin/dependency-check.sh /opt/dependency-check/bin/dependency-check
ENV
PATH $PATH:/opt/dependency-check/bin
WORKDIR
/work
COPY
entrypoint.sh /usr/local/bin/
RUN
chmod
+x /usr/local/bin/entrypoint.sh
ENTRYPOINT
["
/usr/local/bin/
entrypoint.sh"]
COPY
docker-
entrypoint.sh /usr/local/bin/
RUN
chmod
+x /usr/local/bin/
docker-
entrypoint.sh
ENTRYPOINT
["
docker-
entrypoint.sh"]
CMD
["/
usr/local/bin/entrypoint.
sh"]
CMD
["/
bin/
sh"]
This diff is collapsed.
Click to expand it.
dependency-check/docker-entrypoint.sh
0 → 100644
+
34
−
0
View file @
4625c821
#!/bin/sh
set
-e
if
[
"
${
1
#-
}
"
!=
"
$1
"
]
;
then
echo
"OK"
set
--
dependency-check
"
$@
"
fi
exec
"
$@
"
#VERSION=0.1
#echo ${VERSION}
#if [ $1 == '-v' ]; then
# dependency-check.sh -v
# exit 0
#fi
#DEPENDENCY_CHECK_OUT_DIR=${DEPENDENCY_CHECK_OUT_DIR-"`pwd`/dependency-check-report/"}
#SRC_DIR=${SRC_DIR-"./"}
#mkdir -p ${DEPENDENCY_CHECK_OUT_DIR}
#dependency-check.sh --format ALL -s ${SRC_DIR} --out ${DEPENDENCY_CHECK_OUT_DIR} --project ${CI_PROJECT_NAMESPACE} -n
#cat ${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.json | jq '.dependencies | .[] | select (.vulnerabilities) | [.fileName, .filePath, .vulnerabilities]' | sed -e "s/\"\/work\///g"
#RESULT=`cat ${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.json | jq '.dependencies | .[] | select (.vulnerabilities) | [.fileName, .filePath, .vulnerabilities] | length == 0' | sed -e "s/\"\/work\///g"`
#if [ "${RESULT}" = "" ]; then
# exit 0
#else
# exit 1
#fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment