????????????????????????????Global?????????????region???????????????????????????????к???????????????м?????????????
????1??????????????????????????????????????
????2?????????????????????
?????????????????????????????????????
????1??????????
????2???????????????
????3?????????????????
?????????????
???????????????????????????????????????????????????????????Mirror???????????????????в????????
?????????????
registry-push:
restart: always
image: "registry:2.6"
ports:
- 5050:5000
environment:
- REGISTRY_STORAGE=oss
- REGISTRY_STORAGE_OSS_ACCESSKEYID={ak}
- REGISTRY_STORAGE_OSS_ACCESSKEYSECRET={sk}
- REGISTRY_STORAGE_OSS_REGION=oss-cn-hongkong
- REGISTRY_STORAGE_OSS_BUCKET={hk_bucket}
- REGISTRY_STORAGE_OSS_INTERNAL=true
- REGISTRY_STORAGE_OSS_SECURE=false
registry:
restart: always
image: "registry:2.6"
environment:
- REGISTRY_STORAGE=oss
- REGISTRY_STORAGE_OSS_ACCESSKEYID={ak}
- REGISTRY_STORAGE_OSS_ACCESSKEYSECRET={sk}
- REGISTRY_STORAGE_OSS_REGION=oss-cn-hongkong
- REGISTRY_STORAGE_OSS_BUCKET={hk_bucket}
- REGISTRY_STORAGE_OSS_INTERNAL=true
- REGISTRY_STORAGE_OSS_SECURE=false
- REGISTRY_PROXY_REMOTEURL=https://registry.cn-hangzhou.aliyuncs.com
- REGISTRY_PROXY_USERNAME={username}
- REGISTRY_PROXY_PASSWORD={password}
nginx:
image: "nginx:1.9"
ports:
- 443:443
links:
- registry:registry
volumes:
- ./auth:/etc/nginx/conf.d
- ./auth/nginx.conf:/etc/nginx/nginx.conf:ro
??????
.
?????? auth
??   ?????? insta360.com.chained.crt
??   ?????? insta360.com.key
??   ?????? nginx.conf
??   ?????? nginx.htpasswd
?????? docker-compose.yml
1 directory?? 5 files
??????????????????Mirror???????oss??bucket???е????????????????е??????????????????洢??????????????????????????????????????????????????????????Push?????????????????????????????????iptables???ù?????????????????????????????????????????????
?????????????????????????????????????????????????????
????????jenkins??????????
????????????????e???????????????????????
version: '2'
services:
slave-java:
image: registry.aliyuncs.com/acs-sample/jenkins-slave-dind-java
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/slave_java/.m2:/home/jenkins/.m2/
- ./conf/insta360_maven_settings.xml:/usr/share/maven/conf/settings.xml:ro
restart: always
slave-nodejs:
image: registry.aliyuncs.com/acs-sample/jenkins-slave-dind-nodejs
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/slave_nodejs/.npm:/home/jenkins/.npm/
restart: always
app:
image: jenkins:2.46.2-alpine
volumes:
- ./data/jenkins_home:/var/jenkins_home
ports:
- 8080:8080
# - 50000:50000
privileged: true
restart: always
depends_on:
- slave-nodejs
- slave-java
???????£?
.
?????? conf
??   ?????? insta360_maven_settings.xml
?????? data
??   ?????? jenkins_home
??   ?????? slave_java
??   ?????? slave_nodejs
?????? docker-compose.yml
5 directories?? 2 files
??????????????????仯??
????slave-java?????????????е?mavan???????????????????ü?????????????????/home/jenkins/.m2/?????????????????ò??????????????pkg
????slave-nodejs???????????/home/jenkins/.npm/????Ч???????????????node???
????slave??б???????????????
????????jenkins???
????????????÷??????????????????ο?????
??????e?????????????Jenkins 2.0???????????the tag you want?
???????????????????

?????????????????????????????+???????

?????????????£????????jenkins?????????????????????????????????????????????????????????β???????????????20s??????????????????????????????????????????£???????θ??????е?????????????????????????????????????????????
?????′γ???bug??????????????????????????????????