Java and Jenkins Installation:
-
Update all software packages on Ubuntu server. sudo apt-get update sudo apt-get upgrade
-
Install Java on Ubuntu server. sudo apt-get install default-jdk java -version
-
Install Jenkins on Ubuntu server. wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ >
/etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins -
Verify:- (i) ps -ef | grep jenkins (ii) Jenkins will be launched as a daemon up on start - Check under /etc/init.d/jenkins (iii) /etc/default/jenkins will capture configuration parameters for the launch like e.g JENKINS_HOME.
-
launch the Jenkins URLS in the browser:- <ubuntu_ip_address>:8080
-
Get the Password from the path : /var/lib/jenkins/secrets/initialAdminPassword
/etc/default# cat /var/lib/jenkins/secrets/initialAdminPassword 6aba06880c534f85afba6be0085d2fd9 root@ip-172-31-28-251:/etc/default#
-
Click "Install Suggested Plugins" - Then the installation gets started.
-
Create a new user of your own by giving Name, Email-id, username, password.
-
Then Login into the console and explore Jenkins.
- Open up the script vim /etc/default/jenkins
- Find this $JENKINS_USER and change to βrootβ: $JENKINS_USER="root"
- Then change the ownership of Jenkins home, webroot and logs: chown -R root:root /var/lib/jenkins chown -R root:root /var/cache/jenkins chown -R root:root /var/log/jenkins
- Restart Jenkins and check the user has been changed: service jenkins restart
=================================================================================
Docker Installation:
-
sudo apt install docker.io
-
docker login
=================================================================================
Git Installation:
- sudo apt install git
=================================================================================
AWS Access Keys