Skip to content

Commit

Permalink
✨ Update trivy repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tosone committed Sep 26, 2024
1 parent 9d4f430 commit 04743aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build/all.alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ RUN set -eux && \
mv trivy /usr/local/bin/trivy && \
rm trivy_"${TRIVY_VERSION}"_"${TRIVYOS}"-"${TRIVYARCH}".tar.gz && \
mkdir -p /opt/trivy/ && \
if [ "$WITH_TRIVY_DB" = true ]; then trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress; fi && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress
if [ "$WITH_TRIVY_DB" = true ]; then trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress --db-repository="tosone/trivy-java-db:1"; fi && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress --db-repository="tosone/trivy-db:2"

FROM --platform=$BUILDPLATFORM golang:${GOLANG_VERSION} AS skopeo

Expand Down
4 changes: 2 additions & 2 deletions build/all.debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ RUN set -eux && \
mv trivy /usr/local/bin/trivy && \
rm trivy_"${TRIVY_VERSION}"_"${TRIVYOS}"-"${TRIVYARCH}".tar.gz && \
mkdir -p /opt/trivy/ && \
if [ "$WITH_TRIVY_DB" = true ]; then trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress; fi && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress
if [ "$WITH_TRIVY_DB" = true ]; then trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress --db-repository="tosone/trivy-java-db:1"; fi && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress --db-repository="tosone/trivy-db:2"

FROM --platform=$BUILDPLATFORM golang:${GOLANG_VERSION} AS skopeo

Expand Down
2 changes: 1 addition & 1 deletion build/local.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN set -eux && \
mv syft /usr/local/bin/syft && \
rm syft_"${SYFT_VERSION}"_"${TARGETOS}"_"${TARGETARCH}".tar.gz && \
mkdir -p /opt/trivy/ && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress --db-repository="tosone/trivy-db:2"

FROM alpine:${ALPINE_VERSION}

Expand Down
4 changes: 2 additions & 2 deletions build/trivy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN set -eux && \
mv trivy /usr/local/bin/trivy && \
rm trivy_"${TRIVY_VERSION}"_"${TRIVYOS}"-"${TRIVYARCH}".tar.gz && \
mkdir -p /opt/trivy/ && \
trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress
trivy --cache-dir /opt/trivy/ image --download-java-db-only --no-progress --db-repository="tosone/trivy-java-db:1" && \
trivy --cache-dir /opt/trivy/ image --download-db-only --no-progress --db-repository="tosone/trivy-db:2"

FROM scratch

Expand Down

0 comments on commit 04743aa

Please sign in to comment.