Skip to content

Instantly share code, notes, and snippets.

@fespino
Forked from jsuwo/BankAccount.java
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save fespino/403ae6bc8bd215cd09ea to your computer and use it in GitHub Desktop.

Select an option

Save fespino/403ae6bc8bd215cd09ea to your computer and use it in GitHub Desktop.

Continuous Integration with Jenkins on Amazon EC2

Videos

Initial Setup

Fixing Locales in Ubuntu 13.04 on Amazon EC2

sudo apt-get install language-pack-es

Installing Jenkins

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/" | sudo tee -a /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
sudo apt-get install jenkins

Installing and Configuring Apache

Installing Apache

sudo apt-get install apache2
sudo a2enmod proxy
sudo a2enmod proxy_http

/etc/apache2/sites-available/jenkins.conf

<VirtualHost *:80>
	ServerName HOSTNAME
	ProxyRequests Off
	<Proxy *>
		Order deny,allow
		Allow from all
	</Proxy>
	ProxyPreserveHost on
	ProxyPass / http://localhost:8080/
</VirtualHost>

Enabling jenkins.conf

sudo a2ensite jenkins
sudo service apache2 reload

Installing Java 8 / Maven / Git

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer maven git-core

Creating public keys to connect to Github as Jenkins user

sudo su - jenkins
ssh-keygen -t dsa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment