Skip to content

Instantly share code, notes, and snippets.

@mosluce
Created June 27, 2017 06:13
Show Gist options
  • Select an option

  • Save mosluce/d9f193fcc787ab1c6c511d46904fdc80 to your computer and use it in GitHub Desktop.

Select an option

Save mosluce/d9f193fcc787ab1c6c511d46904fdc80 to your computer and use it in GitHub Desktop.
jenkins installation - hello world
jenkins:
build: ./jenkins
user: jenkins
volumes:
- ~/.jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /Users/mosluce/Library/Group\ Containers/group.com.docker/bin/docker:/usr/bin/docker
ports:
- "8080:8080"
- "50000:50000"
restart: unless-stopped
# folder jenkins
FROM jenkins:2.60.1
USER root
RUN apt-get update \
&& apt-get install -y sudo \
&& rm -rf /var/lib/apt/lists/*
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment