This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Add docker containerization files
ClosedPublic

Authored by thopre on Aug 6 2019, 2:12 AM.

Details

Summary

LNT already strive to be easy to use both locally and in server mode.
This patch adds containerization files in a new docker/ directory (which
can later be renamed container/docker if more container gets supported).
Creating the image becomes as easy as docker-compose build and running
it is done via docker-compose up.

The service described in docker-compose.yml uses postgres but the LNT
image is controlled via DB_ variables and thus should work with any
database engine.

Note: I'm quite new to Docker so some reviews on Docker best practice
would be much welcome.

Diff Detail

Repository
rL LLVM

Event Timeline

thopre created this revision.Aug 6 2019, 2:12 AM
cmatthews accepted this revision.Sep 18 2019, 10:34 AM

Looks good. Thanks!

This revision is now accepted and ready to land.Sep 18 2019, 10:34 AM
thopre updated this revision to Diff 220909.Sep 19 2019, 2:03 PM
  • Quote variables
  • use exec to call gunicorn to avoid spawning a new process
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2019, 2:14 PM