diff --git a/docs/dev-ops/docker-compose-v1.0.yml b/docs/dev-ops/docker-compose-v1.0.yml new file mode 100644 index 0000000000000000000000000000000000000000..9cd062b006770ce5bb306903153ebd977f8da95e --- /dev/null +++ b/docs/dev-ops/docker-compose-v1.0.yml @@ -0,0 +1,24 @@ +version: '3.8' +# 执行脚本;docker-compose -f docker-compose-v1.0.yml up -d +# https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json +services: + jenkins: + image: jenkins/jenkins:2.439 + container_name: jenkins + privileged: true + user: root + ports: + - "9090:8080" + - "50001:50000" + volumes: + - ./jenkins_home:/var/jenkins_home + - /var/run/docker.sock:/var/run/docker.sock + - /usr/bin/docker:/usr/local/bin/docker + - ./maven/conf/settings.xml:/usr/local/maven/conf/settings.xml + - /dev-ops/jdk/jdk1.8.0_202:/usr/local/jdk1.8.0_202 + environment: + - JAVA_OPTS=-Djenkins.install.runSetupWizard=false # 禁止安装向导「如果需要密码则不要配置」docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword + restart: unless-stopped + +volumes: + jenkins_home: diff --git a/docs/dev-ops/maven/conf/settings.xml b/docs/dev-ops/maven/conf/settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..7664905de3310cc16de41e37ede08be0a9737922 --- /dev/null +++ b/docs/dev-ops/maven/conf/settings.xml @@ -0,0 +1,271 @@ + + + + + + + + /user/local/maven/repository + + + + + + + + + + + + + + + + + + + + + + + + + + alimaven + aliyun maven + http://maven.aliyun.com/nexus/content/groups/public/ + central + + + + + + + + + + + +