f4lco / om-parser-stw-potsdam-v2

Connect canteens of the Studentenwerk Potsdam to OpenMensa
3 stars 7 forks source link

Dockerfile for automated docker deployment #1

Closed kaifabian closed 6 years ago

kaifabian commented 6 years ago

This PR contains a two stage Dockerfile that can be used on Dockerhub to automatically build a om-parser-stw-potsdam-v2 image for deployment via Docker (or alternatively, a local deployment using "docker build"). It is based on Alpine Linux with Python 2.7 (and uwsgi as frontend service).

The first stage runs the provided tests (via "make test"). If those succeed, the actual image is built.

kaifabian commented 6 years ago

Both your comments should be taken care (commits c1bee2d and d6973fc). Additionaly, I parameterized the listen port (74077a7), removed the tests and Makefile in the final image, since they are not required there (2fd1889) and added a health check that can be used in HA deployments (01d4067). Better? :)

f4lco commented 6 years ago

Perfect! 🙂 🥇 👍