Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
Stefan Reimer | 6de66df1a9 | |
Stefan Reimer | dbdc24fe53 | |
Renovate Bot | bda8c643c6 | |
Stefan Reimer | 4161f32529 | |
Stefan Reimer | d504595922 | |
Renovate Bot | a270f8481e | |
Stefan Reimer | c7bc209fd8 | |
Renovate Bot | 1c02becff6 | |
Stefan Reimer | 2a2081b01b | |
Stefan Reimer | ab32348082 | |
Stefan Reimer | aa92aa43c1 | |
Renovate Bot | 1ec7cd94e2 |
|
@ -2,6 +2,9 @@
|
|||
|
||||
def call(Map config=[:]) {
|
||||
pipeline {
|
||||
options {
|
||||
disableConcurrentBuilds()
|
||||
}
|
||||
agent {
|
||||
node {
|
||||
label 'podman-aws-trivy'
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -2,7 +2,7 @@
|
|||
# https://hub.docker.com/r/jenkins/inbound-agent/tags
|
||||
|
||||
|
||||
FROM jenkins/inbound-agent:alpine-jdk17@sha256:4f78d4832acacddf3573b1095770f672ac0b2a76432002f9ade707e302f96a12
|
||||
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