Skip to content

Dockerize

Gustavo Noronha requested to merge kov/lava:wip-dockerize into collabora/next

This is what I have up to now. Essentially a Dockerfile that does a 2-stage image build, first building the (patched to remove the strict reliance on the db being available at install time) deb packages, then installing them along with some other tools (django-environ, wait-for-it) and with an entry point that is a bash script that starts all the relevant services. At the moment it also starts a worker for ease of testing, though I am not sure we want that for the final one.

You'll also find a very basic docker-compose file with a sample override that uses a dockerized database and docker volumes for the stuff we need to persist, as suggested by @em. For now it is all in the root and with the names that let you just run docker-compose up and get that working, I accept suggestions of how that should be shipped instead.

Btw, is there a way to say "map every port mentioned in EXPOSE" in docker-compose?

Edited by Gustavo Noronha

Merge request reports