UNCLASSIFIED

Commit 520c489d authored by Peter Sigur's avatar Peter Sigur
Browse files

adding pgrep to install and adding a healthcheck

parent 012af68d
...@@ -19,7 +19,7 @@ LABEL name="Solutions Delivery Platform: OWASP Dependency Checker" \ ...@@ -19,7 +19,7 @@ LABEL name="Solutions Delivery Platform: OWASP Dependency Checker" \
COPY LICENSE /licenses COPY LICENSE /licenses
### Add necessary Red Hat repos and packages here ### Add necessary Red Hat repos and packages here
RUN INSTALL_PKGS="java-1.8.0-openjdk-devel mono-devel ruby unzip" && \ RUN INSTALL_PKGS="java-1.8.0-openjdk-devel mono-devel pgrep ruby unzip" && \
yum update -y \ yum update -y \
--nogpgcheck \ --nogpgcheck \
--disablerepo=unified_platform_ubi8_os \ --disablerepo=unified_platform_ubi8_os \
...@@ -62,5 +62,6 @@ VOLUME ["/src" "/usr/share/dependency-check/data" "/report"] ...@@ -62,5 +62,6 @@ VOLUME ["/src" "/usr/share/dependency-check/data" "/report"]
WORKDIR /src WORKDIR /src
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD pgrep -f "dependency-check.sh"
CMD ["--help"] CMD ["--help"]
ENTRYPOINT ["/usr/share/dependency-check/bin/dependency-check.sh"] ENTRYPOINT ["/usr/share/dependency-check/bin/dependency-check.sh"]
\ No newline at end of file
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