Go to file
amorozov ae52dce4ed
All checks were successful
Gitea/docker-base-images/jenkins-ssh-agent-jdk17-dind/pipeline/head This commit looks good
chore: updated setup-sshd
2025-03-03 02:03:05 +03:00
docs initial commit 2025-03-03 00:42:00 +03:00
.gitattributes initial commit 2025-03-03 00:42:00 +03:00
.gitignore initial commit 2025-03-03 00:42:00 +03:00
AGENT.README.md initial commit 2025-03-03 00:42:00 +03:00
dockerd-sshd-entrypoint.sh initial commit 2025-03-03 00:42:00 +03:00
Dockerfile chore: updated Dockerfile 2025-03-03 01:01:54 +03:00
jdk-download-url.sh initial commit 2025-03-03 00:42:00 +03:00
jdk-download.sh initial commit 2025-03-03 00:42:00 +03:00
Jenkinsfile chore: added Jenkinsfile 2025-03-03 00:44:11 +03:00
LICENSE initial commit 2025-03-03 00:42:00 +03:00
README.md initial commit 2025-03-03 00:42:00 +03:00
setup-sshd chore: updated setup-sshd 2025-03-03 02:03:05 +03:00
setup-sshd.ps1 initial commit 2025-03-03 00:42:00 +03:00

Склейка DinD и Jenkins SSH Agent.

  • Берем Jenkins SSH Agent, а именно Alpine Dockerfile
  • Изменяем базовый образ на docker:dind (по-умолчанию он на базе alpine)
  • Добавляем в Dockerfile под создание пользователя jenkins строки:
RUN addgroup docker || true && \
    addgroup ${user} docker
  • В setup-sshd вписываем строки:
# dockerd's patch
dockerd-entrypoint.sh
  • Собираем, тэгаем и пушим