Skip to content

A Simple and Colourful Go app for Demo & Training purposes

Notifications You must be signed in to change notification settings

nerajchand/sample-go-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Sample Go Web App

This is a simple Go Web App that can be used for Training & Demo purposes.

There are multiple branches available with different colours, to help showcase the different image releases.

Building & Push a New Container Image Releases to DockerHub

To create a new release the following steps will need to be performed:

docker buildx build --platform linux/amd64 . --tag narji/sample-go-app:0.1.0 --push

Build & Tag a Local Image

docker buildx build --platform linux/amd64 . --tag sample-go-app

Run the Container Locally

Run From a Local Image

Once the image has been built locally the container can be run with docker as follows:

docker run -p 8080:8080 sample-go-app

Run From a Pulled Imaged

Instead of building a local version you can also pull a remote image with the specified tag:

    docker image pull narji/sample-go-app:0.1.0

A quick look will show which images are locally available.

    docker image ls

These are the images you can use locally. So for the remote image we've downloaded to our local computer this may look like this:

    docker container run -p 8080:8080 narji/sample-go-app:0.1.0

About

A Simple and Colourful Go app for Demo & Training purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published