UNCLASSIFIED

Commit d3747f82 authored by sean.melissari's avatar sean.melissari
Browse files

Merge branch 'renovate/quay.io-coreos-clair-4.x' into 'development'

Update quay.io/coreos/clair Docker tag to v4

See merge request !8
parents 0427a3d9 07c6cbe8
Pipeline #317118 passed with stages
in 13 minutes and 54 seconds
...@@ -2,7 +2,7 @@ ARG BASE_REGISTRY=registry1.dso.mil ...@@ -2,7 +2,7 @@ ARG BASE_REGISTRY=registry1.dso.mil
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8 ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8
ARG BASE_TAG=8.4 ARG BASE_TAG=8.4
FROM quay.io/coreos/clair:v2.1.7 as base FROM quay.io/coreos/clair:v4.1.0 as base
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} as build FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} as build
...@@ -18,6 +18,9 @@ RUN dnf install -y gcc make && \ ...@@ -18,6 +18,9 @@ RUN dnf install -y gcc make && \
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ENV CLAIR_CONF=/config/config.yaml CLAIR_MODE=combo
ENV SSL_CERT_DIR="/etc/ssl/certs:/etc/pki/tls/certs:/var/run/certs"
RUN groupadd -g 1000 clair && \ RUN groupadd -g 1000 clair && \
useradd -r -u 1000 -m -s /sbin/nologin -g clair clair && \ useradd -r -u 1000 -m -s /sbin/nologin -g clair clair && \
mkdir /etc/clair && \ mkdir /etc/clair && \
...@@ -27,15 +30,17 @@ RUN groupadd -g 1000 clair && \ ...@@ -27,15 +30,17 @@ RUN groupadd -g 1000 clair && \
rm -rf /var/cache/dnf && \ rm -rf /var/cache/dnf && \
chmod -s /usr/libexec/openssh/ssh-keysign chmod -s /usr/libexec/openssh/ssh-keysign
COPY --from=base /clair /clair COPY --from=base /bin/clair /bin/clair
COPY --from=base /usr/bin/dumb-init /usr/bin/dumb-init COPY --from=base /bin/clairctl /bin/clairctl
COPY --from=base /usr/local/bin/dumb-init /usr/local/bin/dumb-init
COPY --from=build /usr/local/musl/lib/libc.so /usr/local/musl/lib/libc.so COPY --from=build /usr/local/musl/lib/libc.so /usr/local/musl/lib/libc.so
COPY --from=build /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1 COPY --from=build /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
USER clair USER 1000
VOLUME /config VOLUME /config
WORKDIR /run
EXPOSE 6060 6061 EXPOSE 6060 6061
HEALTHCHECK CMD curl -fs http://127.0.0.1:6061/health || curl -fsk https://127.0.0.1:6061/health || exit 1 HEALTHCHECK CMD curl -fs http://127.0.0.1:6061/health || curl -fsk https://127.0.0.1:6061/health || exit 1
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/clair"] ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "/bin/clair"]
...@@ -8,7 +8,7 @@ name: "opensource/quay/clair" ...@@ -8,7 +8,7 @@ name: "opensource/quay/clair"
# The most specific version should be the first tag and will be shown # The most specific version should be the first tag and will be shown
# on ironbank.dsop.io # on ironbank.dsop.io
tags: tags:
- "v2.1.7" - "v4.1.0"
- "latest" - "latest"
# Build args passed to Dockerfile ARGs # Build args passed to Dockerfile ARGs
...@@ -27,7 +27,7 @@ labels: ...@@ -27,7 +27,7 @@ labels:
org.opencontainers.image.url: "https://github.com/quay/clair" org.opencontainers.image.url: "https://github.com/quay/clair"
# Name of the distributing entity, organization or individual # Name of the distributing entity, organization or individual
org.opencontainers.image.vendor: "Red Hat" org.opencontainers.image.vendor: "Red Hat"
org.opencontainers.image.version: "v2.1.7" org.opencontainers.image.version: "v4.1.0"
# Keywords to help with search (ex. "cicd,gitops,golang") # Keywords to help with search (ex. "cicd,gitops,golang")
mil.dso.ironbank.image.keywords: "security,scanning,container" mil.dso.ironbank.image.keywords: "security,scanning,container"
# This value can be "opensource" or "commercial" # This value can be "opensource" or "commercial"
...@@ -37,8 +37,8 @@ labels: ...@@ -37,8 +37,8 @@ labels:
# List of resources to make available to the offline build context # List of resources to make available to the offline build context
resources: resources:
- tag: quay.io/coreos/clair:v2.1.7 - tag: quay.io/coreos/clair:v4.1.0
url: docker://quay.io/coreos/clair@sha256:0962dd91c2f5de60ea2c0019fb275bc463fce6f59db96597e09e645627439909 url: docker://quay.io/coreos/clair@sha256:d5900e1f7ac487661acfd70f53f6de9d937035553199c182ffdf5bbdd0c88db8
- filename: musl.tar.gz - filename: musl.tar.gz
url: https://musl.libc.org/releases/musl-1.2.0.tar.gz url: https://musl.libc.org/releases/musl-1.2.0.tar.gz
validation: validation:
......
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