Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
Stefan Reimer | 6de66df1a9 | |
Stefan Reimer | dbdc24fe53 | |
Renovate Bot | bda8c643c6 | |
Stefan Reimer | 4161f32529 | |
Stefan Reimer | d504595922 | |
Renovate Bot | a270f8481e |
10
Dockerfile
10
Dockerfile
|
@ -2,7 +2,7 @@
|
|||
# https://hub.docker.com/r/jenkins/inbound-agent/tags
|
||||
|
||||
|
||||
FROM jenkins/inbound-agent:alpine-jdk17@sha256:3452960784c5b0a32cdd7cab20d23341f8a480d6783f567d565f5c0c7aa0418a
|
||||
FROM jenkins/inbound-agent:alpine-jdk17@sha256:38484c0f035a57b3cab5838468fb6c5c2b3f3051e7a2c8b39c99a30823f393ce
|
||||
|
||||
ARG BUILDUSER=jenkins
|
||||
|
||||
|
@ -32,8 +32,8 @@ ADD entrypoint.sh /usr/local/bin/entrypoint.sh
|
|||
# conf/registries.conf will be mounted RO at runtime to inherit worker settings incl. caching proxies
|
||||
ADD --chown=$BUILDUSER:$BUILDUSER conf/containers.conf conf/storage.conf /home/$BUILDUSER/.config/containers
|
||||
|
||||
RUN echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subuid && \
|
||||
echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subgid && \
|
||||
RUN echo -e "$BUILDUSER:100000:65535" > /etc/subuid && \
|
||||
echo -e "$BUILDUSER:100000:65535" > /etc/subgid && \
|
||||
cd /usr/bin && ln -s podman docker && \
|
||||
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER
|
||||
|
||||
|
@ -45,6 +45,10 @@ ENV BUILDAH_ISOLATION=chroot
|
|||
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
||||
ENV HOME=/home/$BUILDUSER
|
||||
|
||||
# Until we setup the logging and metrics pipelines in OTEL
|
||||
ENV OTEL_LOGS_EXPORTER=none
|
||||
ENV OTEL_METRICS_EXPORTER=none
|
||||
|
||||
USER $BUILDUSER
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh"]
|
||||
|
|
Loading…
Reference in New Issue