UNCLASSIFIED

Commit cf4b1313 authored by Casey Spicer's avatar Casey Spicer
Browse files

added healthcheck and temporary directory

parent b7a40ebc
Pipeline #67665 failed with stages
in 4 minutes and 57 seconds
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment