Sign inSign up

okidooca/jenkins-ssh-agent-git

By okidooca

•Updated almost 4 years ago

Image
2

1M+

okidooca/jenkins-ssh-agent-git repository overview

⁠Installation
⁠Why

This version of jenkins ssh-agent has been made because some pipelines needed git, curl and/or rsync.

⁠Docker-compose
version: "3.7"
services:
  jenkins:
    image: jenkins/jenkins:jdk11
    container_name: jenkins
    restart: unless-stopped
    user: root
    depends_on:
      - jenkins-dind
    volumes:
      - ./jenkins:/var/jenkins_home
      - ./certs:/certs/client:ro
    environment:
      DOCKER_HOST: tcp://docker:2376
      DOCKER_CERT_PATH: /certs/client
      DOCKER_TLS_VERIFY: 1
    networks:
      - jenkins

  jenkins-agent:
    image: okidooca/jenkins-ssh-agent-git:latest
    container_name: jenkins_agent
    restart: unless-stopped
    depends_on:
      - jenkins-dind
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/bin/docker:/usr/bin/docker
      - ./jenkins:/var/jenkins_home
      - ./certs:/certs/client:ro
    environment:
      JENKINS_AGENT_SSH_PUBKEY: ${JENKINS_AGENT_SSH_PUBKEY}
      DOCKER_HOST: "tcp://docker:2376"
      DOCKER_CERT_PATH: /certs/client
      DOCKER_TLS_VERIFY: 1
    networks:
      - jenkins

  jenkins-dind:
    image: docker:dind
    container_name: jenkins_dind
    restart: unless-stopped
    user: root
    privileged: true
    networks:
      jenkins:
        aliases:
          - docker
    volumes:
      - ./certs:/certs/client
      - ./jenkins:/var/jenkins_home
    environment:
       DOCKER_TLS_CERTDIR: /certs

Tag summary

Content type

Image

Digest

sha256:855c39701…

Size

176.5 MB

Last updated

almost 4 years ago

docker pull okidooca/jenkins-ssh-agent-git