Created
December 7, 2017 10:47
-
-
Save drumadrian/1160c290bd8e2c7bb39ce6d7b4bad06d to your computer and use it in GitHub Desktop.
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 characters
# Install Jenkins on AWS EC2 instance | |
# https://pkg.jenkins.io/redhat/ | |
# https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf | |
# https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf | |
# https://gist.github.com/diegopacheco/6d69e0cfaf13d4351cfa700bb4af8172 | |
# https://www.youtube.com/watch?v=uu5XcU4EPzQ | |
sudo yum update | |
sudo yum remove -y java | |
sudo yum install java-1.8.0 | |
sudo yum install java-1.8.0-openjdk | |
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo | |
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key | |
sudo yum install jenkins | |
sudo service jenkins start | |
sudo cat /var/lib/jenkins/secrets/initialAdminPassword | |
# Connect to http://<your_server_public_DNS>:8080 | |
# aws sns publish --topic-arn "arn:aws:sns:us-west-2:123123123123:MyTopic" --message "Jenkins build is starting" | |
# Note: For HTTPS, use an Elastic Load Balancer listening with a certificate on port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment