fix: limit scope of testing repo
This commit is contained in:
parent
dac6a11564
commit
7a707c781a
13
Dockerfile
13
Dockerfile
@ -7,9 +7,7 @@ FROM jenkins/inbound-agent:${BASE}
|
|||||||
ARG USER=jenkins
|
ARG USER=jenkins
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN apk upgrade -U --available --no-cache && apk add --no-cache \
|
||||||
&& apk upgrade -U --available --no-cache \
|
|
||||||
&& apk add --no-cache \
|
|
||||||
tini \
|
tini \
|
||||||
make \
|
make \
|
||||||
yq \
|
yq \
|
||||||
@ -17,7 +15,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
|
|||||||
fuse-overlayfs \
|
fuse-overlayfs \
|
||||||
podman \
|
podman \
|
||||||
buildah \
|
buildah \
|
||||||
aws-cli \
|
aws-cli
|
||||||
|
|
||||||
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||||
|
apk upgrade -U --available --no-cache && apk add --no-cache \
|
||||||
trivy
|
trivy
|
||||||
|
|
||||||
# Trivy html template
|
# Trivy html template
|
||||||
@ -48,9 +49,9 @@ ENV _CONTAINERS_USERNS_CONFIGURED=""
|
|||||||
ENV BUILDAH_ISOLATION=chroot
|
ENV BUILDAH_ISOLATION=chroot
|
||||||
ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl"
|
ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl"
|
||||||
|
|
||||||
USER jenkins
|
USER $USER
|
||||||
|
|
||||||
# Allow container layers to be stored in PVCs
|
# Allow container layers to be stored in PVCs
|
||||||
VOLUME /home/jenkins/.local/share/containers
|
VOLUME /home/$USER/.local/share/containers
|
||||||
|
|
||||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/jenkins-agent"]
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/jenkins-agent"]
|
||||||
|
Loading…
Reference in New Issue
Block a user