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

new #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- 项目必须为maven项目

- 前提用`docker-compose`构建服务器,步骤如下
- 前提用`docker-compose`构建服务器,步骤如下(注意要先关闭SELinux:vim /etc/sysconfig/selinux , SELINUX=enforcing 改为 SELINUX=disabled 重启)

- 创建宿主机挂载目录:`mkdir -p /data/docker/ci/nexus /data/docker/ci/jenkins/lib /data/docker/ci/jenkins/home /data/docker/ci/sonarqube /data/docker/ci/postgresql /data/docker/ci/gatling/results`

Expand Down Expand Up @@ -118,8 +118,10 @@

jenkins:

image: wine6823/jenkins:1.1

#image: wine6823/jenkins:1.1
image: jenkins/jenkins:lts
privileged: true
user: root
restart: always

ports:
Expand All @@ -144,6 +146,12 @@

- /data/docker/ci/jenkins/home:/var/jenkins_home

- /etc/sysconfig/docker:/etc/sysconfig/docker

- /usr/bin/docker-current:/usr/bin/docker-current

- /usr/lib/x86_64-linux-gnu/libcrypto.so.10:/usr/lib64/libcrypto.so.10

depends_on:

- nexus
Expand Down