Simple web server in python that returns his own IP address, listening port and cumulative hit count
10K+
A simple web server that outputs the IP addresses of the source and destination, useful for load balancing testing. It checks for the $PORT0 variable and starts the server on that port if it's defined. This is useful for deployment with Marathon.
Runs on Alpine linux base in order to be lightweight. Uses python 2.7.
simpleweb is a simple web to show the source and destination IP addresses of the received requests information, written in python.
The docker image is auto built at https://registry.hub.docker.com/u/fernandosanchez/simpleweb/.
FROM fernandosanchez/simpleweb
$ docker run --rm -it -p 80:80 fernandosanchez/simpleweb
The image is based on yeasy/simple-web, which is based on python:2.7
Add the index.py code. Modify it to have the server listen on port number $PORT0 if that environment variable is defined. This is useful for automatic port assignment with Marathon. Dockerfile to run on lightweight Alpine linux and python 2.7.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureContent type
Unrecognized
Digest
Size
15.2 MB
Last updated
almost 10 years ago
docker pull fernandosanchez/simpleweb