Created
August 7, 2017 01:57
-
-
Save KondaReddyR/09bbb7f749514e4a6426c221ff1f592e to your computer and use it in GitHub Desktop.
Disaster-proof Jenkins as Swarm service on AWS
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
From https://docs.docker.com/docker-for-aws/, Deploy Docker Community Edition (CE) for AWS (stable: https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=Docker&templateURL=https://editions-us-east-1.s3.amazonaws.com/aws/stable/Docker.tmpl ) (More Info: http://youtu.be/uWTL8gwzZz4) | |
export CLUSTER_IP=[...] #Public IP of one of the managers | |
export CLUSTER_DNS=[...] #DefaultDNSTarget | |
ssh -i workshop.pem docker@$CLUSTER_IP | |
docker network create -d overlay proxy | |
curl -o proxy.yml https://raw.githubusercontent.com/vfarcic/docker-flow-stacks/master/proxy/docker-flow-proxy.yml | |
docker stack deploy -c proxy.yml proxy | |
curl -o jenkins.yml https://raw.githubusercontent.com/vfarcic/docker-flow-stacks/master/jenkins/vfarcic-jenkins-df-proxy-aws.yml | |
echo "admin" | docker secret create jenkins-user - | |
echo "admin" | docker secret create jenkins-pass - | |
docker stack deploy -c jenkins.yml jenkins | |
open http://$CLUSTER_DNS:jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment