Docker deployed Jekins

 

1, see the list of docker Jenkins mirror warehouse

 

 

2, do not directly docker pull jenkins, or installed directly 2.6X version, various plug-ins do not support, a super pit! ! ! Nima! !

3, view the downloaded image Jenkins

 4, see Jenkins version and configuration

 

 

 5, the installation jdk, first check whether the current environment jdk installed, view the version that can be installed jdk

 

 Jdk version requires installation of:

 

 6, see the installation of jdk version

 

7, install maven

View maven version that can be installed

 

 The maven version is too low, in order to later environmental problem, install the latest version of the official website does not appear

 

 Found no wget command to download, install wget

 

 Download again

 

 Create a maven installation directory

 

 Extracting installation package maven

 

 Set Environment Variables maven

 

 Before installing the jdk only found here jre, jdk installation again

yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

 

 Reload the profile so that system files take effect

Check the maven environment:

 

 8, the next start Jenkins

docker run -d -p 8002:8080 -v ~/jenkins:/var/jenkins_home --name jenkins -u 0 jenkins/jenkins

 

 OK yet? so easy?

----- NO, NO, Tucson pattern break!

Modify plug-center address, or the next plug-in installation will do you die happy ~ _ ~

 

 Restart Jenkins

 

 

Next to normal, according to the page prompted for an administrator password

 

 

 

 

 

 (Recommended) to install the recommended plugins

 

 

Then just wait for it! Plug-in installation finished, set the administrator account password

 

Guess you like

Origin www.cnblogs.com/jassa/p/12526399.html