You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jakob Runge edited this page Jul 15, 2016
·
3 revisions
The CoBL container
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.
Requirements
The CoBL submodule needs to be checked out, as well as it's submodules.
The CoBL/ielex/local_settings.py, which can also be generated by build.sh may need adjustment.
An instance of the lingdb/postgres container must be running.
build.sh
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 REQUIREMENTS file for pip into the container
and installing the pip dependencies.
Copying the CoBL/static directory to /build_static, to:
Install npm dependencies
Install bower dependencies
Perform grunt tasks {jshint, minify}
Copy the rest of CoBL to /CoBL
and replace the CoBL/static content with /build_static.
Generate /entrypoint.sh and set ENTRYPOINT,EXPOSE.
run.sh
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).