diff --git a/README.md b/README.md index fa5b243..6fe60b9 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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: @@ -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