HUB
Sign inSign up

bugre/helloworld-py

By bugre

•Updated over 6 years ago

quick 'n dirty python container "hello world" for testing. With embedded webserver.

Image
0

10K+

bugre/helloworld-py repository overview

⁠Hello world Docker image

Hello world docker image to be used to test load-balancers, cache servers, apache/ngnix, etc

⁠Based on idea from

https://github.com/eea/eea.docker.hello

⁠Build

$ docker build -t helloworld-py  .

⁠Simple run

$ docker run --rm -p 80:80 bugre/helloworld-py

⁠Run with Docker compose

See docker-compose.yml file

⁠Scale and test
 $ docker-compose scale webapp=4 haproxy=1

Now go to: http://localhost⁠

Check backends health at: http://admin:admin@localhost:1936⁠

⁠Supported environment variables

You can override default running port inside container via

  • PORT Serve on this port instead of 80 (e.g. 8080)

    $ docker run --rm -e PORT=8080 -p 80:8080 bugre/helloworld-py

Tag summary

Content type

Image

Digest

Size

34.4 MB

Last updated

over 6 years ago

docker pull bugre/helloworld-py