Public | Automated Build

Last pushed: a year ago
Short Description
jenkins
Full Description

Jenkins

Run

docker run -p 8080:8080 -p 50000:50000 -v /vol/jenkins:/var/jenkins_home -v /usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 --rm --name jenkins hanjaelee/jenkins:latest

Systemd

- name: jenkins.service
  command: start
  content: |
    [Unit]
    Description=jenkins.service
    Requires=registry.service
    After=registry.service
    [Service]
    TimeoutStartSec=0
    Restart=always
    ExecStartPre=/usr/bin/chmod 0777 /vol/jenkins
    ExecStartPre=-/usr/bin/docker kill jenkins
    ExecStartPre=-/usr/bin/docker rm jenkins
    ExecStartPre=/usr/bin/docker pull hanjaelee/jenkins:latest
    ExecStart=/usr/bin/docker run -p 8080:8080 -p 50000:50000 -v /vol/jenkins:/var/jenkins_home -v /usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 --rm --name jenkins hanjaelee/jenkins:latest
    [Install]
    WantedBy=multi-user.target
Docker Pull Command
Owner
hanjaelee
Source Repository

Comments (0)