Skip to content

sayedh/go-docker-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Go-Docker-AWS project

This a simple Go project, dockerized with Docker, and deployed to AWS

Technologies Used

  • Go
  • Docker
  • AWS

Dependencies

mkdir .ssh
cd .ssh
ssh-keygen

Executing program

  • Download the repository onto your computer and go to project file
git clone https://github.com/sayedh/go-docker-aws
cd go-docker-aws
  • Use Docker-machine command to create a free instance in AWS
docker-machine create -d amazonec2 \
--amazonec2-region us-west-1 \
--amazonec2-ami ami-067f8db0a5c2309c0 \
--amazonec2-ssh-keypath ~/.ssh/id_rsa \
aws-new-cli-test
  • Build and run the project
eval $(docker-machine env aws-new-cli-test)
docker build -t docker-test .
docker run -d -p 8080:8081 docker-test
  • Get your instance Public IPv4 address from AWS

image

image

image

About

go-docker-aws

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published