Simple python http/ REST echo server. Serves only the reply:
"Hello from 'hostname' (<ip_addr>)!"
Available as image on dockerhub: https://hub.docker.com/repository/docker/dseeley/pyechoserver
- python3
- gnu make
- docker
[SRV_PORT=8090] python3 -m unittest test/pyechoserver_test.py -v
python3 src/main.py [--port 8090]
Runs built-in tests, then builds a docker image with the tag latest
, and the (optional) TAG
version.
[TAG=0.0.1] make dockerbuild
Runs built-in tests, then builds a docker image and pushes to DockerHub with the tag latest
, and the (optional) TAG
version.
[TAG=0.0.1] make dockerpush
docker run -d --name pyechoserver -e SRV_PORT=8090 -p 8090:8090 dseeley/pyechoserver:latest
Also bundled a deployment and service manifests for reference.