-
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
CoBL
submodule needs to be checked out, as well as it's submodules. - The
CoBL/ielex/local_settings.py
, which can also be generated bybuild.sh
may need adjustment. - An instance of the
lingdb/postgres
container 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
REQUIREMENTS
file forpip
into the container and installing thepip
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 theCoBL/static
content with/build_static
. - Generate
/entrypoint.sh
and 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)
.