go-docker-aws

command module
v0.0.0-...-ad21eef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL