Introduction to Jenkins and how to deploy Jenkins with Docker

Introduction to Jenkins and how to deploy Jenkins with Docker

1. Related concepts

1.1 Jenkins Concepts:

Jenkins is a powerful application that allows for continuous integration and continuous delivery of projects, regardless of the platform used. It's a free source code that can handle any kind of build or continuous integration. Integration with Jenkins can be used for several testing and deployment techniques. Jenkins is a software that allows continuous integration.

1.2 Jenkins Purpose:

1. Continuously and automatically build/test software projects.
2. Monitor the software opening process, quickly locate and handle problems, and improve opening efficiency.

1.3 Features:

An open source Java language development continuous integration tool that supports CI and CD.

Easy to install, deploy and configure: It can be installed through yum, or by downloading war packages and quickly installed and deployed through docker containers, which facilitates web interface configuration management.

Message notification and test report: Integrated RSS/E-mail to publish build results via RSS or notify via e-mail when the build is completed, and generate JUnit/TestNG test reports.

Distributed build: Support Jenkins to enable multiple computers to build/test together.

File identification: Jenkins can track which build generates which jars, which build uses which version of jars, etc.

Rich plug-in support: Supports extended plug-ins, you can develop tools suitable for your team, such as git, svn, maven, docker, etc.

1.4 Product Release Process:

  • Product design is completed -> Developers develop code -> Testers test functions -> Operations and maintenance personnel release and launch
  • Continuous integration (CI)
  • Continuous delivery
  • Continuous deployment

Docker deployment

docker run -it --name jenkins --restart always --user root -p 10002:8080 -p 50000: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 that the docker command can also be used inside the jenkins container

Note that there will be a random password after startup:
example:
1e3180604feb492b9ed9af4e418715d7

If you start it with -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 web page for the first time.

After entering, you will be asked to install plug-ins. I have chosen to install all of them. Of course, you can also only install the recommended ones, or manually choose which plug-ins to install.

Reference: https://hub.docker.com/_/jenkins/

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to use DockerFile to automatically deploy Java projects in Jenkins
  • Detailed tutorial on deploying Jenkins based on docker
  • Automatically build and deploy using Docker+Jenkins
  • Docker container uses Jenkins to deploy web projects (summary)
  • Detailed explanation of the Docker deployment tutorial for Jenkins beginners

<<:  JavaScript to achieve a simple message board case

>>:  innodb_flush_method value method (example explanation)

Recommend

25 fresh useful icon sets for download abroad

1. E-Commerce Icons 2. Icon Sweets 2 3. Mobile Ph...

Example of how to implement keepalived+nginx high availability

1. Introduction to keepalived Keepalived was orig...

CSS to implement sprites and font icons

Sprites: In the past, each image resource was an ...

Version numbers in css and js links in HTML (refresh cache)

background Search the keyword .htaccess cache in ...

Customization Method of Linux Peripheral File System

Preface Generally speaking, when we talk about Li...

How to modify the default storage engine in MySQL

mysql storage engine: The MySQL server adopts a m...

Steps to deploy Docker project in IDEA

Now most projects have begun to be deployed on Do...

Detailed graphic and text instructions for installing MySQL 5.7.20 on Mac OS

Installing MySQL 5.7 from TAR.GZ on Mac OS X Comp...

Common symbols in Unicode

Unicode is a character encoding scheme developed ...

How to introduce pictures more elegantly in Vue pages

Table of contents Error demonstration By computed...

IIS7~IIS8.5 delete or modify the server protocol header Server

Requirements: Remove HTTP response headers in IIS...

Vue integrates Tencent Map to implement API (with DEMO)

Table of contents Writing Background Project Desc...

MySQL database operations (create, select, delete)

MySQL Create Database After logging into the MySQ...