In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the method of deploying Jenkins in Docker". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
I. related concepts
1.1 jenkins concept:
Jenkins is a powerful application that allows continuous integration and continuous delivery of projects, regardless of platform. This is a free source code that can handle any type of build or continuous integration. Integrated jenkins can be used for some testing and deployment technologies. Jenkins is a piece of software that allows continuous integration.
1.2 jenkins purpose:
1. Build / test software projects continuously and automatically.
2. Monitor the open flow of software, quickly locate and deal with problems, and indicate the efficiency of opening.
1.3 Features:
Open source java language development continuous integration tools, support ci,cd.
Easy to install and deploy configuration: you can install it through yum, download war packages, and quickly install and deploy it through docker containers. It is convenient for web interface configuration management.
Message notification and test report: the integrated rss/e-mail publishes the build results through rss or generates the junit/testng test report through e-mail notification when the build is completed.
Distributed build: support for jenkins allows multiple computers to build / test together.
File recognition: jenkins can track which builds generate which jar, which builds which version of jar, and so on.
Rich plug-in support: support for extensions, you can develop tools suitable for your team, such as git,svn,maven,docker and so on.
1.4 Product release process:
Product design shaping-> developer development code-> tester testing function-> operation and maintenance personnel release online
Continuous integration (continuous integration, ci)
Continuous delivery (continuous delivery)
Continuous deployment (continuous deployment)
Docker deployment
Docker run-it-- name jenkins-- restart always-- user root-p 10002 name jenkins 8080-p 50000 0015 50000-v / var/run/docker.sock:/var/run/docker.sock-v $(which docker): / usr/bin/docker jenkins
The external docker is mapped to the internal docker, so the docker command can also be used inside the jenkins container
Notice that there will be a random password after startup:
Example:
1e3180604feb492b9ed9af4e418715d7
If you start as-it, you can see it in the command window.
Of course, you can also enter the container and find it in / var/jenkins_home/secrets/initialadminpassword.
You need to fill in this password when you open the page for the first time.
After entering, you will be asked to install plug-ins. I have chosen to install all of them here, of course, you can only install the recommended ones, or choose which plug-ins to install manually.
This is the end of the content of "how Docker deploys Jenkins". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.