-
-
Save fespino/403ae6bc8bd215cd09ea to your computer and use it in GitHub Desktop.
Revisions
-
fespino revised this gist
Jul 9, 2014 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ Continuous Integration with Jenkins on Amazon EC2 ================================================= [Videos](https://www.youtube.com/watch?v=zojMg2c6k3Q) ## Initial Setup ### Fixing Locales in Ubuntu 13.04 on Amazon EC2 @@ -56,4 +58,12 @@ sudo service apache2 reload 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 ``` -
fespino revised this gist
Jul 9, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Continuous Integration with Jenkins on Amazon EC2 ### Fixing Locales in Ubuntu 13.04 on Amazon EC2 ```bash sudo apt-get install language-pack-es ``` ### Installing Jenkins -
fespino revised this gist
Jul 9, 2014 . 5 changed files with 2 additions and 76 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,10 +50,10 @@ sudo a2ensite jenkins sudo service apache2 reload ``` ## Installing Java 8 / Maven / Git ```bash sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer maven git-core ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,24 +0,0 @@ -
jeffshantz revised this gist
Feb 16, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ sudo a2enmod proxy sudo a2enmod proxy_http ``` ### `/etc/apache2/sites-available/jenkins.conf` ```bash <VirtualHost *:80> -
jeffshantz revised this gist
Feb 16, 2014 . 4 changed files with 74 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ package ca.uwo.csd.cs2212.USERNAME; public class BankAccount { private double balance; public BankAccount(double balance) { this.balance = balance; } public double debit(double amount) { if (balance < amount) { amount = balance; } balance -= amount; return amount; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ package ca.uwo.csd.cs2212.USERNAME; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; public class TestBankAccount { } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <project> <modelVersion>4.0.0</modelVersion> <groupId>ca.uwo.csd.cs2212.USERNAME</groupId> <artifactId>USERNAME-lab5</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>7</maven.compiler.source> <maven.compiler.target>7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> </dependency> </dependencies> </project> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.6.4.201312101107</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>post-unit-test</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> </plugins> </build> -
jeffshantz revised this gist
Feb 16, 2014 . 1 changed file with 11 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,15 @@ Continuous Integration with Jenkins on Amazon EC2 ================================================= ## Initial Setup ### Fixing Locales in Ubuntu 13.04 on Amazon EC2 ```bash sudo apt-get install language-pack-en ``` ### Installing Jenkins ```bash wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - @@ -18,20 +18,17 @@ sudo apt-get update sudo apt-get install jenkins ``` ## Installing and Configuring Apache ### Installing Apache ```bash sudo apt-get install apache2 sudo a2enmod proxy sudo a2enmod proxy_http ``` ### `/etc/apache2/sites-availabe/jenkins.conf` ```bash <VirtualHost *:80> @@ -46,16 +43,14 @@ sudo a2enmod proxy_http </VirtualHost> ``` ### Enabling `jenkins.conf` ```bash sudo a2ensite jenkins sudo service apache2 reload ``` ## Installing Java / Maven / Git ```bash sudo add-apt-repository ppa:webupd8team/java -
jeffshantz created this gist
Feb 16, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,64 @@ Initial Setup ============================================ Fixing Locales in Ubuntu 13.04 on Amazon EC2 -------------------------------------------- ```bash sudo apt-get install language-pack-en ``` Installing Jenkins ------------------ ```bash 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 ----------------- ```bash sudo apt-get install apache2 sudo a2enmod proxy sudo a2enmod proxy_http ``` `/etc/apache2/sites-availabe/jenkins.conf` -------------- ```bash <VirtualHost *:80> ServerName HOSTNAME ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPreserveHost on ProxyPass / http://localhost:8080/ </VirtualHost> ``` Enabling `jenkins.conf` ----------------------- ```bash sudo a2ensite jenkins sudo service apache2 reload ``` Installing Java / Maven / Git ============================= ```bash sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer maven git-core ```