Sign inSign up

devopsmail26/jenkins-docker

By devopsmail26

•Updated about 4 years ago

Image
0

141

devopsmail26/jenkins-docker repository overview

#Docker file for creating jenkins

FROM jenkins/jenkins:lts

USER root

RUN mkdir -p /tmp/download &&
curl -L https://download.docker.com/linux/static/stable/x86_64/docker-18.03.1-ce.tgz⁠ | tar -xz -C /tmp/download &&
rm -rf /tmp/download/docker/dockerd &&
mv /tmp/download/docker/docker* /usr/local/bin/ &&
rm -rf /tmp/download &&
groupadd -g 998 docker &&
usermod -aG staff,docker jenkins

USER jenkins

*****note: replace the group id of the docker group in the docker file with the group id of your server docker group ID.

mkdir /var/jenkins_home

chown -R ubuntu:docker /var/jenkins_home

create the above directory in your linux machine and use it in below command

docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -d --name jenkins devopsmail26/jenkins-docker

Tag summary

Content type

Image

Digest

sha256:4d5f332ae…

Size

298.5 MB

Last updated

about 4 years ago

docker pull devopsmail26/jenkins-docker