openflighthpc / concertim-ansible-playbook

Ansible playbook for building a Concertim appliance
Eclipse Public License 2.0
0 stars 0 forks source link

Dockerize #46

Closed benarmston closed 1 year ago

benarmston commented 1 year ago

There is docker-compose.yml file describing two services: concertim and db. db contains a postgresql server and concertim contains everything else. The db service is built from the official postgresql image. The concertim image is built from a Dockerfile. Building the docker images is complicated/non-standard a build-docker.sh script has been added to manage this.

The ansible playbook made some assumptions that do not work with docker.

  1. It is possible to install services and start them via systemctl during the playbook.
  2. The database (and other services) would be running on localhost.
  3. It is possible to migrate databases and create/update data during the playbook.

To that end the ansible playbook/roles have seen some changes.

  1. Creating the database user has been moved out of the database role and into the ct-visualisation-app role. This is probably a better location for it.
  2. Two new ansible variables and an ansible tag have been added allowing the playbook to be split into "build" and "post build" tasks. When running docker-compose build only the "build" tasks are ran. Afterwards, the "post build" tasks are ran via docker-compose run.

There are a few issues with the current implementation: