-
Notifications
You must be signed in to change notification settings - Fork 270
/
Copy pathDockerfile
34 lines (24 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Builder
FROM registry.access.redhat.com/ubi9/go-toolset:1.21.10-1.1719562237@sha256:ae17d73e70a966f39ef4dfca74241e3ca4374cd1198b02c30ea0748b8dcc83a6 AS builder
SHELL ["/bin/bash", "-c"]
USER root
# renovate: datasource=github-releases depName=containers/skopeo
ARG SKOPEO_VERSION=v1.16.1
RUN curl -L "https://github.com/containers/skopeo/archive/${SKOPEO_VERSION}.tar.gz" -o /tmp/skopeo.tar.gz && \
tar -xzf /tmp/skopeo.tar.gz && \
mv skopeo-${SKOPEO_VERSION//v} /skopeo && \
pushd /skopeo && \
make BUILDTAGS=containers_image_openpgp DISABLE_DOCS=1 CGO_ENABLED=0 GO_DYN_FLAGS=
USER 1001
# Runnable
FROM ghcr.io/redhat-cop/containers-quickstarts/jenkins-agent:v4.16
LABEL name="redhat-cop/jenkins-agent-image-mgmt" \
io.k8s.display-name="Jenkins Agent Image Management" \
io.k8s.description="Image management tools on top of the jenkins agent base image" \
com.redhat.component="redhat-cop/containers-quickstarts/jenkins-agent-image-mgmt"
USER root
RUN mkdir -p /etc/containers
COPY --from=builder /skopeo/default-policy.json /etc/containers/policy.json
COPY --from=builder /skopeo/bin/skopeo /usr/local/bin/skopeo
USER 1001
RUN skopeo --version