Compare commits

...

18 Commits

Author SHA1 Message Date
f99c9aae1d Merge pull request 'chore(deps): update jenkins/inbound-agent:alpine-jdk21 docker digest to ce5fe24' (#10) from renovate/jenkins-inbound-agent-alpine-jdk21 into master
Some checks reported errors
ZeroDownTime/jenkins-podman/pipeline/head Something is wrong with the build of this commit
ZeroDownTime/jenkins-podman/pipeline/tag There was a failure building this commit
Reviewed-on: #10
2024-08-09 13:33:02 +00:00
d9107d1a7b fix: use proper dir for xdg-run on Jenkins
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/head There was a failure building this commit
ZeroDownTime/jenkins-podman/pipeline/tag There was a failure building this commit
2024-08-09 13:32:15 +00:00
48c133f095 fix: use proper dir for xdg-run on Jenkins
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/head There was a failure building this commit
ZeroDownTime/jenkins-podman/pipeline/tag There was a failure building this commit
2024-08-09 13:28:37 +00:00
6f498eff58 chore(deps): update jenkins/inbound-agent:alpine-jdk21 docker digest to ce5fe24
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/pr-master There was a failure building this commit
2024-08-09 03:06:54 +00:00
621c2035c6 fix: ensure xdg-run dir exists on mounted fs
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
ZeroDownTime/jenkins-podman/pipeline/tag This commit looks good
2024-07-24 10:27:38 +00:00
a165073521 feat: sunc contrib templates for Trivy from 0.53 release
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
2024-07-15 13:04:42 +00:00
16dcaef4f7 fix: Fix trivy, config location
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
ZeroDownTime/jenkins-podman/pipeline/tag This commit looks good
2024-06-25 17:10:00 +00:00
2579cc7f00 fix: Adjust things to new HOME location
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/head There was a failure building this commit
2024-06-25 16:35:37 +00:00
5d782faa02 fix: Remove HOME env as it is set by default ZDT Jenkins config
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/head There was a failure building this commit
2024-06-25 15:48:16 +00:00
7bd5dc4093 Merge pull request 'chore(deps): update jenkins/inbound-agent:alpine-jdk21 docker digest to a7e633f' (#9) from renovate/jenkins-inbound-agent-alpine-jdk21 into master
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/head There was a failure building this commit
Reviewed-on: #9
2024-06-25 15:47:10 +00:00
33d242f69a chore(deps): update jenkins/inbound-agent:alpine-jdk21 docker digest to a7e633f
Some checks failed
ZeroDownTime/jenkins-podman/pipeline/pr-master There was a failure building this commit
2024-06-23 03:04:12 +00:00
f7fcfd53ad chore: latest Jenkins base image
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
ZeroDownTime/jenkins-podman/pipeline/tag This commit looks good
2024-06-14 13:50:23 +00:00
6de66df1a9 Merge pull request 'chore(deps): update jenkins/inbound-agent:alpine-jdk17 docker digest to 38484c0' (#7) from renovate/jenkins-inbound-agent-alpine-jdk17 into master
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
Reviewed-on: #7
2024-04-15 15:09:09 +00:00
dbdc24fe53 fix: Ensure only traces are sent via OTEL for now
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
2024-04-15 14:51:31 +00:00
bda8c643c6 chore(deps): update jenkins/inbound-agent:alpine-jdk17 docker digest to 38484c0
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/pr-master This commit looks good
2024-04-03 03:05:51 +00:00
4161f32529 fix: subuid cleanup
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
ZeroDownTime/jenkins-podman/pipeline/tag This commit looks good
2024-03-12 15:58:19 +00:00
d504595922 Merge pull request 'chore(deps): update jenkins/inbound-agent:alpine-jdk17 docker digest to 1787182' (#6) from renovate/jenkins-inbound-agent-alpine-jdk17 into master
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good
Reviewed-on: #6
2024-03-12 15:57:25 +00:00
a270f8481e chore(deps): update jenkins/inbound-agent:alpine-jdk17 docker digest to 1787182
All checks were successful
ZeroDownTime/jenkins-podman/pipeline/pr-master This commit looks good
2024-03-12 03:19:02 +00:00
4 changed files with 19 additions and 8 deletions

View File

@ -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:3452960784c5b0a32cdd7cab20d23341f8a480d6783f567d565f5c0c7aa0418a FROM jenkins/inbound-agent:alpine-jdk21@sha256:ce5fe247069abd73c82d40ae5c6c400ead2c12f7be854be368d64893afc2663a
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
@ -41,9 +41,14 @@ RUN echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subuid && \
RUN sed -i -e 's/exec \$JAVA_BIN/podman system service -t0\&\n exec \$JAVA_BIN/' /usr/local/bin/jenkins-agent RUN sed -i -e 's/exec \$JAVA_BIN/podman system service -t0\&\n exec \$JAVA_BIN/' /usr/local/bin/jenkins-agent
ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run
ENV XDG_CONFIG_HOME=/home/$BUILDUSER/.config
ENV BUILDAH_ISOLATION=chroot ENV BUILDAH_ISOLATION=chroot
ENV _CONTAINERS_USERNS_CONFIGURED="" 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 USER $BUILDUSER

2
Jenkinsfile vendored
View File

@ -2,4 +2,4 @@ library identifier: 'zdt-lib@master', retriever: modernSCM(
[$class: 'GitSCMSource', [$class: 'GitSCMSource',
remote: 'https://git.zero-downtime.net/ZeroDownTime/ci-tools-lib.git']) remote: 'https://git.zero-downtime.net/ZeroDownTime/ci-tools-lib.git'])
buildPodman name: 'jenkins-podman', trivyFail: 'NONE' buildPodman name: 'jenkins-podman'

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
mkdir -p $HOME/agent/xdg-run $HOME/agent/containers/run $HOME/agent/containers/storage mkdir -p $XDG_RUNTIME_DIR
/usr/local/bin/jenkins-agent /usr/local/bin/jenkins-agent

View File

@ -14,8 +14,12 @@
</testcase> </testcase>
{{- end }} {{- end }}
</testsuite> </testsuite>
{{- $failures := len .Misconfigurations }}
<testsuite tests="{{ $failures }}" failures="{{ $failures }}" name="{{ .Target }}" errors="0" skipped="0" time=""> {{- if .MisconfSummary }}
<testsuite tests="{{ add .MisconfSummary.Successes .MisconfSummary.Failures }}" failures="{{ .MisconfSummary.Failures }}" name="{{ .Target }}" errors="0" skipped="{{ .MisconfSummary.Exceptions }}" time="">
{{- else }}
<testsuite tests="0" failures="0" name="{{ .Target }}" errors="0" skipped="0" time="">
{{- end }}
{{- if not (eq .Type "") }} {{- if not (eq .Type "") }}
<properties> <properties>
<property name="type" value="{{ .Type }}"></property> <property name="type" value="{{ .Type }}"></property>
@ -23,7 +27,9 @@
{{- end -}} {{- end -}}
{{ range .Misconfigurations }} {{ range .Misconfigurations }}
<testcase classname="{{ .Type }}" name="[{{ .Severity }}] {{ .ID }}" time=""> <testcase classname="{{ .Type }}" name="[{{ .Severity }}] {{ .ID }}" time="">
{{- if (eq .Status "FAIL") }}
<failure message="{{ escapeXML .Title }}" type="description">{{ escapeXML .Description }}</failure> <failure message="{{ escapeXML .Title }}" type="description">{{ escapeXML .Description }}</failure>
{{- end }}
</testcase> </testcase>
{{- end }} {{- end }}
</testsuite> </testsuite>