Public | Automated Build

Last pushed: a year ago
Short Description
Simple web server in python that returns his own IP address, listening port and cumulative hit count
Full Description

simpleweb

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.

What is simpleweb?

simpleweb is a simple web to show the source and destination IP addresses of the received requests information, written in python.

How to use this image?

The docker image is auto built at https://registry.hub.docker.com/u/fernandosanchez/simpleweb/.

In Dockerfile

FROM fernandosanchez/simpleweb

Local Run

$ docker run --rm -it -p 80:80 fernandosanchez/simpleweb

Which image is based on?

The image is based on yeasy/simple-web, which is based on python:2.7

What has been changed?

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.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D
Docker Pull Command
Owner
fernandosanchez
Source Repository