-
Notifications
You must be signed in to change notification settings - Fork 0
cobl
Jakob Runge edited this page Jul 15, 2016
·
3 revisions
CoBL/build.sh builds the lingdb/cobl container which aims to provide a specific version of the CoBL project usually specified by a tag in the form of $(date -I).$i where $i is the deployment number for that day.
- The
CoBLsubmodule needs to be checked out, as well as it's submodules. - The
CoBL/ielex/local_settings.py, which can also be generated bybuild.shmay need adjustment. - An instance of the
lingdb/postgrescontainer must be running.
Executing CoBL/build.sh performs the build of the lingdb/CoBL container.
The build has several steps performing these tasks:
- Setting container metadata.
- Installing dependencies provided by the packet manager of the base image.
- Copying the
REQUIREMENTSfile forpipinto the container and installing thepipdependencies. - Copying the
CoBL/staticdirectory to/build_static, to:- Install npm dependencies
- Install bower dependencies
- Perform grunt tasks {jshint, minify}
- Copy the rest of
CoBLto/CoBLand replace theCoBL/staticcontent with/build_static. - Generate
/entrypoint.shand setENTRYPOINT,EXPOSE.
CoBL/run.sh starts the lingdb/cobl container linking it against
the latest running version of lingdb/postgres.
The name of the running container
has the form of $imageName_$(date -I)_$(pwgen 5 1).