This is an ultra-simple web server written in java. It returns a welcome message and also print outs the server's IP address and listening TCP port. This is useful for demo purposes and load-balancing testing. It also looks for the environment variable $PORT0 and starts the server in that port if the variable exists. This is useful for deployment with Marathon and DC/OS.
The docker version runs on Alpine linux and is fairly lightweight.
Pull the docker image into docker or marathon. Or download and run the .jar file locally.
Docker image is available:
Or run locally as:
sudo java -jar simpleweb.jar
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Most of the code is coming from:
The code for detecting the server's IP addresses was found here:
TODO: Write license