Sign inSign up

jeffdecola/hello-go-deploy-amazon-ec2

By jeffdecola

•Updated over 3 years ago

Deploy a "hello-world" docker image to Amazon Elastic Compute Cloud (ec2).

Image
0

7.0K

jeffdecola/hello-go-deploy-amazon-ec2 repository overview

⁠HELLO GO DEPLOY AMAZON EC2

Tag Latest Go Reference Go Report Card codeclimate Maintainability codeclimate Issue Count Docker Pulls MIT License jeffdecola.com

Deploy a "hello-world" docker image to Amazon Elastic Compute Cloud (ec2).

Github repo⁠

Dockerfile⁠

⁠USEFUL COMMANDS

To run on your machine, I suggest,

docker run --name hello-go-deploy-amazon-ec2 -dit jeffdecola/hello-go-deploy-amazon-ec2

To see the output,

docker logs hello-go-deploy-amazon-ec2

To bash shell in the container,

docker exec -i -t hello-go-deploy-amazon-ec2 /bin/bash

⁠OUTPUT

Written in go, every 2 seconds hello-go will print:

Hello everyone, count is: 1
Hello everyone, count is: 2
Hello everyone, count is: 3
etc...

Tag summary

Content type

Image

Digest

sha256:d6b0517a1…

Size

7.2 MB

Last updated

over 3 years ago

docker pull jeffdecola/hello-go-deploy-amazon-ec2