Skip to content
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:

  1. Setting container metadata.
  2. Installing dependencies provided by the packet manager of the base image.
  3. Copying the REQUIREMENTS file for pip into the container and installing the pip dependencies.
  4. Copying the CoBL/static directory to /build_static, to:
    • Install npm dependencies
    • Install bower dependencies
    • Perform grunt tasks {jshint, minify}
  5. Copy the rest of CoBL to /CoBL and replace the CoBL/static content with /build_static.
  6. 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).

Clone this wiki locally