Perteghella / hello-shell

Sample "Hello world" containerized web server written in GO and the tools of alpine

Home Page:https://hub.docker.com/r/perteghella/hello-shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Information

Sample "Hello world" containerized web server written in GO and the tools of alpine:

This application is available as two OCI images on Docker Hub, which respond to requests with different version numbers:

  • perteghella/hello-shell:1.0
  • perteghella/hello-shell:2.0

The images are based on https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/tree/main/hello-app

Key features

  • Multi architecture build
    • linux/amd64
    • linux/arm64
  • Minimal size due to multistage build
  • Multiple tag to test the migration to different version of deployment

How to use this image with Docker cli

Download the proper tagged image docker pull perteghella/hello-shell:TAG

Run as daemon exposing port 8080 on localhost port 8000

docker pull perteghella/hello-shell:1.0

docker run -d -p 8000:8080 perteghella/hello-shell:1.0

Verify that the server is running and respond

curl http://127.0.0.1:8000

Attach to shell using

docker exec -it CONTAINER-ID /bin/sh

Code

Source on Github https://github.com/Perteghella/hello-shell

Build the image

docker buildx build --platform linux/amd64,linux/arm64 --tag perteghella/hello-shell:1.0 --push .

About

Sample "Hello world" containerized web server written in GO and the tools of alpine

https://hub.docker.com/r/perteghella/hello-shell


Languages

Language:Go 79.4%Language:Dockerfile 20.6%