Skip to content

Jenkins 镜像

镜像列表

docker-compose.yml 脚本
yaml
# mkdir -p        /srv/jenkins/jenkins-data
# chmod -R a+rw   /srv/jenkins/jenkins-data
#
#
# export JENKINS_HOME=/srv/jenkins  && echo $JENKINS_HOME && docker compose up -d
# export JENKINS_HOME=`pwd`         && echo $JENKINS_HOME && docker compose up -d
#
services:
  jenkins-blueocean:
    # image: 'xuxiaoweicomcn/jenkins:2.452.1-jdk17'
    image: 'registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.452.1-jdk17'
    restart: always
    hostname: 'jenkins'
    ports:
      - '8080:8080'
      - '50000:50000'
    environment:
      TZ: Asia/Shanghai
      DOCKER_HOST: tcp://docker:2376
      DOCKER_CERT_PATH: /certs/client
      DOCKER_TLS_VERIFY: 1
    volumes:
      - '/etc/localtime:/etc/localtime:ro'
      - '$JENKINS_HOME/jenkins-data:/var/jenkins_home'
      - '$JENKINS_HOME/jenkins-root/.m2:/root/.m2'
      - '$JENKINS_HOME/jenkins-docker-certs:/certs/client:ro'
    container_name: jenkins-blueocean
    networks:
      jenkins:
        ipv4_address: 172.26.26.2

  jenkins-docker:
    # image: 'docker:26.1.3-dind'
    image: 'registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/docker:26.1.3-dind'
    restart: always
    privileged: true
    hostname: 'docker'
    environment:
      DOCKER_TLS_CERTDIR: /certs
    volumes:
      - '/etc/localtime:/etc/localtime:ro'
      - '$JENKINS_HOME/jenkins-docker-certs:/certs/client'
      - '$JENKINS_HOME/jenkins-data:/var/jenkins_home'
      - '$JENKINS_HOME/jenkins-docker-overlay2:/var/lib/docker/overlay2'
      - '$JENKINS_HOME/jenkins-docker-image:/var/lib/docker/image'
      - '$JENKINS_HOME/jenkins-root/.m2:/root/.m2'
    command: [ "--storage-driver", "overlay2" ]
    container_name: jenkins-docker
    networks:
      jenkins:
        ipv4_address: 172.26.26.3

networks:
  jenkins:
    driver: bridge
    name: jenkins
    ipam:
      config:
        - subnet: 172.26.26.0/24
          gateway: 172.26.26.1
镜像说明
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.469-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.468-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.467-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.466-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.464-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.463-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.462-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.461-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.460-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.459-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.458-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.457-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.456-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.455-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.454-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.453-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.452.3-jdk17Long-Term Support (LTS)
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.452.2-jdk17Long-Term Support (LTS)
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.452.1-jdk17Long-Term Support (LTS)
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.449-jdk17Weekly
registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/jenkins:2.440.3-jdk17Weekly