-
Install Git
-
copy use git
git clone https://github.com/DenisBuyakov/jenkins-docker-in-docker.git cd jenkins-docker-in-docker/
-
Install Docker
(ubuntu option)Install for ubuntusudo ./install-docker sudo systemctl status docker
-
install jenkins (optional local) use docker env
cd docker cp .env.template .env sudo docker-compose up -d
Usual Access URL: http://{host-address-here}:8082 root password for jenkins in file docker/jenkins-data/secrets/initialAdminPassword
you can use commandsudo docker exec jenkins-blueocean cat /var/jenkins_home/secrets/initialAdminPassword
-
install "docker" plugin and "Docker Pipeline"
-
(aws ubuntu option)swap enable
sudo dd if=/dev/zero of=/swapfile bs=128M count=16 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon -s sudo nano /etc/fstab sudo awk ... /etc/fstab > /tmp/$$ sudo cat /tmp/$$ > /etc/fstab sudo rm /tmp/$$
Add the following new line at the end of the file, save the file, and then exit:
/swapfile swap swap defaults 0 0
-
go to "Manage Nodes and Clouds" and then "Configure Clouds" and then "Add a new cloud" and then select the "docker" type from the drop-down list.
Docker Cloud details: docker host url -
tcp://docker:2376
we need to set up the Server CredentialsX.509 Client Certificate
Client Key. Client Certificate. Server CA Certificate. from /certs directory you can use command
sudo docker exec jenkins-docker cat /certs/client/key.pem sudo docker exec jenkins-docker cat /certs/client/cert.pem sudo docker exec jenkins-docker cat /certs/server/ca.pem sudo docker exec jenkins-blueocean cat /certs/client/key.pem sudo docker exec jenkins-blueocean cat /certs/client/cert.pem sudo docker exec jenkins-docker-in-docker cat /certs/server/ca.pem
checkbox enabled
jenkins-docker-in-docker's Introduction
jenkins-docker-in-docker's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.