In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!
Original link address: gitlab and jenkins installation of docker (42)
As I have said before, the CICD landing solutions of different companies are different and varied. I have previously mentioned the micro services of java, the cluster environment of K8s, on this basis, including code compilation, code submission, unit test service release, and key node automation. Source code: https://github.com/limingios/msA-docker/vagrant master branch CICD
Jenkins
The open source tool written by java, jenkins is relatively flexible, you can add the required plug-ins through plug-ins, in addition to expansibility, it also supports the distributed construction of multiple machines. Jenkins has a large user base, which can be said to be the most mainstream deployment tool at present.
Sort out the process git+jenkins+k8s client initiation code push to gitlab gitlab configured webhook things, it can start the construction of jenkins jenkins to do more things
3.1 build code
3.2 static analysis
3.3 Unit Test
3.4 build Mirror
3.5 push push Image Warehouse
3.6 call the apik8s of K8s to pull the image repository for deployment. GitLab installation (101this host)
Server01 in source code
Download the image $docker pull gitlab/gitlab-ce:latest
Run the GitLab container
Use the docker command to run the container, and be careful to change hostname to your favorite name, and the-v mount directory to your own directory.
Port mapping all the secure ports are used here. If there are no port restrictions or conflicts in your environment, you can use the same port as the container, such as:-p 443-p 80:80-p 22:22
Generate startup file-start.shcat
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.