Skip to content
Snippets Groups Projects

Resolve "Integrate dependency-check container with Sonarqube"

Compare and Show latest version
4 files
+ 64
13
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -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"]
Loading