UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
S
Solutions Delivery Platform
dependency-check
dependency-check
Commits
cf4b1313
Commit
cf4b1313
authored
Nov 02, 2020
by
Casey Spicer
Browse files
added healthcheck and temporary directory
parent
b7a40ebc
Pipeline
#67665
failed with stages
in 4 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Dockerfile
Dockerfile
+9
-1
No files found.
Dockerfile
View file @
cf4b1313
ARG
BASE_REGISTRY=registry.access.redhat.com
ARG
BASE_IMAGE=ubi8/ubi
ARG
BASE_TAG=8.2
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
#FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM
registry.access.redhat.com/ubi8/ubi:8.2
### Required Atomic/OpenShift Labels - https://github.com/projectatomic/ContainerApplicationGenericLabels
LABEL
name="Solutions Delivery Platform: OWASP Dependency Check" \
...
...
@@ -63,13 +64,20 @@ RUN useradd -ms /bin/bash ${user} && \
chown
-R
${
user
}
:
${
user
}
/usr/share/dependency-check
&&
\
mkdir
/report
&&
\
chown
-R
${
user
}
:
${
user
}
/report
&&
\
mkdir
/tempdir
&&
\
chown
-R
${
user
}
:
${
user
}
/tempdir
&&
\
yum
-y
-v
clean all
&&
\
[
!
-d
/var/cache/yum
]
||
rm
-rf
/var/cache/yum
USER
${user}
ENV
URL=https://google.com
ARG
JAVA_OPTS
ENV
JAVA ${JAVA_OPTS:- '-Djava.io.tmp=/tempdir'}
VOLUME
["/src" "/usr/share/dependency-check/data" "/report"]
WORKDIR
/src
CMD
[]
ENTRYPOINT
[ "/bin/sh", "/usr/share/dependency-check/bin/container-entrypoint.sh" ]
HEALTHCHECK
--interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl $URL
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment