A simple go application built on a SLEBCI Golang container image
- Clone this repo from github
- Go into the
simple-go-container
directory docker build -t hello-from-slebci .
docker images
- To start the container in the background,
docker run --rm -d -p 8080:8080/tcp --name hello-from-slebci hello-from-slebci:latest
docker ps
w3m -dump http://localhost:8080/hello
- To stop the running container,
docker stop hello-from-slebci
NOTES:
- USERNAME is Docker Hub user account
- X is the version of the s390x-hello container
docker login --username USERNAME
docker tag hello-from-slebci:latest USERNAME/s390x-hello:vX
docker push USERNAME/s390x-hello:vX
docker logout