jenkins in docker start scripts

This commit is contained in:
Primakov Alexandr Alexandrovich 2021-05-30 23:34:33 +03:00
parent b266f18682
commit 27ba280cb5
2 changed files with 2 additions and 0 deletions

1
templates/start.1.sh Normal file
View File

@ -0,0 +1 @@
docker container run --name jenkins-docker --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --publish 2376:2376 docker:dind

1
templates/start.2.sh Normal file
View File

@ -0,0 +1 @@
docker container run --name jenkins-blueocean --detach --network jenkins --env DOCKER_HOST=tcp://docker:2376 --env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1 --publish 8080:8080 --publish 50000:50000 --volume jenkins-data:/var/jenkins_home --volume jenkins-docker-certs:/certs/client:ro jenkinsci/blueocean