Created
July 19, 2017 23:58
-
-
Save Bevilacqua/b0f0f9fc0c3138cd4edac89bde1dc2d1 to your computer and use it in GitHub Desktop.
This file contains 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
1. ```sudo yum update -y``` | |
2. ```sudo yum install -y docker``` | |
3. ```sudo service docker start``` | |
4. ```sudo usermod -a -G docker ec2-user``` | |
5. Log out of SSH and Log back in | |
6. Verify ec2-user can run docker commands with ```docker info``` | |
7. Bring in Docker file ```curl https://gist.githubusercontent.com/Bevilacqua/5754480c2af1e1d222b93c82402533f7/raw/0857a0b2f4d7047ed5525de46b86c7e70b312375/Dockerfile > Dockerfile``` | |
8. Build a docker image ```docker build --build-arg GIT_USERNAME=INSERT-USERNAME --build-arg GIT_TOKEN=INSERT-TOKEN --no-cache -t serpico .``` | |
9. Launch the server ```docker run -it -p 443:8443 serpico``` | |
10. NOTE: USE HTTPS PROTOCOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment