Installing Jenkins on Google Cloud instance or on AWS EC2
Jenkins is a continues deployment tool, which helps you to build & deploy your project easily, you just need to push your code to your code repository, and then jenkins will take care of all stuff, it will pull your code to the application server & will run custom commands like composer update etc , so that you no need to worry about deploying code thats why its called as push to deploy. It comes with very easy to use GUI.
Following tutorial i was doing on google cloud vm instances, same you can do on aws ec2 machines also.
create vm instance -
Install java 7 or above -
1 2 3 4 5 6 |
sudo su echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee /etc/apt/sources.list.d/webupd8team-java.list echo “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee -a /etc/apt/sources.list.d/webupd8team-java.list apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886 apt-get update apt-get install oracle-java8-installer |
This will isntall java8 in your instance.
sudo apt-get install fontconfig
Now install jenkins -
1 2 3 4 5 6 7 8 9 10 11 |
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - echo “deb http://pkg.jenkins-ci.org/debian binary/” » /etc/apt/sources.list sudo apt-get update sudo apt-get install jenkins // Restart jenkins sudo service jenkins restart |
now redirect your browser to yourIp:8080
you can change port & other jenkin configuration by modifying /etc/defaults/jenkins
Recent Comments