Created
March 8, 2021 08:37
-
-
Save neilkuan/605e37a444a0bef16a804838658b74db 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
| #!/bin/bash | |
| #!/bin/bash | |
| yum install docker -y | |
| systemctl start docker | |
| usermod -aG docker ec2-user | |
| usermod -aG docker ssm-user | |
| chmod +x /var/run/docker.sock | |
| systemctl restart docker && systemctl enable docker | |
| mkdir /home/ec2-user/jenkins-data | |
| docker run --name jks --rm -d -u root -p 8080:8080 -p 50000:50000 -v /home/ec2-user/jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v /home/ec2-user:/home jenkinsci/blueocean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment