Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
f7fcfd53ad | |||
6de66df1a9 | |||
dbdc24fe53 | |||
bda8c643c6 | |||
4161f32529 | |||
d504595922 | |||
a270f8481e | |||
c7bc209fd8 | |||
1c02becff6 | |||
2a2081b01b | |||
ab32348082 | |||
aa92aa43c1 | |||
1ec7cd94e2 |
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
def call(Map config=[:]) {
|
def call(Map config=[:]) {
|
||||||
pipeline {
|
pipeline {
|
||||||
|
options {
|
||||||
|
disableConcurrentBuilds()
|
||||||
|
}
|
||||||
agent {
|
agent {
|
||||||
node {
|
node {
|
||||||
label 'podman-aws-trivy'
|
label 'podman-aws-trivy'
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -2,7 +2,7 @@
|
||||||
# https://hub.docker.com/r/jenkins/inbound-agent/tags
|
# https://hub.docker.com/r/jenkins/inbound-agent/tags
|
||||||
|
|
||||||
|
|
||||||
FROM jenkins/inbound-agent:alpine-jdk17@sha256:4f78d4832acacddf3573b1095770f672ac0b2a76432002f9ade707e302f96a12
|
FROM jenkins/inbound-agent:alpine-jdk21@sha256:5bbf84cbe7ce45478c8528fb9a30c8720b7d228b38f26150ab9c605ac02bc44b
|
||||||
|
|
||||||
ARG BUILDUSER=jenkins
|
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
|
# 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
|
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 && \
|
RUN echo -e "$BUILDUSER:100000:65535" > /etc/subuid && \
|
||||||
echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subgid && \
|
echo -e "$BUILDUSER:100000:65535" > /etc/subgid && \
|
||||||
cd /usr/bin && ln -s podman docker && \
|
cd /usr/bin && ln -s podman docker && \
|
||||||
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER
|
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER
|
||||||
|
|
||||||
|
@ -45,6 +45,10 @@ ENV BUILDAH_ISOLATION=chroot
|
||||||
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
||||||
ENV HOME=/home/$BUILDUSER
|
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
|
USER $BUILDUSER
|
||||||
|
|
||||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user