Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker安装jenkins并配置(jdk,maven,git,docker,node等) #18

Open
jerrychir opened this issue Feb 28, 2019 · 0 comments
Open

Docker安装jenkins并配置(jdk,maven,git,docker,node等) #18

jerrychir opened this issue Feb 28, 2019 · 0 comments

Comments

@jerrychir
Copy link
Owner

jerrychir commented Feb 28, 2019

Docker安装jenkins并配置

1.确保docker已安装

2.下载最新jenkins

docker pull jenkinsci/blueocean

3.运行jenkins

  docker run \
  -u root \
  --name jenkins \
  --rm \
  -d \
  -p 8181:8080 \
  -p 50000:50000 \
  -v /docker/jenkins/data:/var/jenkins_home \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /usr/local/src/java/jdk1.8.0_171:/usr/local/jdk \
  -v /usr/local/src/maven/apache-maven-3.5.3:/usr/local/maven \
  jenkinsci/blueocean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant