Prepare restricted Jenkins delivery agent

This commit is contained in:
Codex
2026-11-04 19:24:55 +00:00
parent bda4ac8240
commit f55a36468c
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
FROM jenkins/inbound-agent@sha256:5069347cd3e72e5924e54c04fceb67209b41c8d0a3ab1c2b3f740e5fb2fab92a
USER root
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-venv docker-cli openssh-client && rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/ansible && /opt/ansible/bin/pip install --no-cache-dir ansible-core==2.22.0 && /opt/ansible/bin/ansible-galaxy collection install -p /usr/share/ansible/collections community.docker:5.0.4
ENV PATH="/opt/ansible/bin:${PATH}"
USER jenkins