GithubHelp home page GithubHelp logo

perteghella / hello-shell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

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

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

Dockerfile 20.56% Go 79.44%
docker golang hello-world multiarch-images

hello-shell's Introduction

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 .

hello-shell's People

Contributors

perteghella avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.