Staging instance, all changes can be removed at any time

Skip to content

Finalize the database initialization refactoring to use the default of the container

This is the following of the refactoring initialized in swh/infra/sysadm-environment#2736 (closed)/!232 (closed) with the scheduler.

The database creation is delegated to the postgresql container, and the service database is initialized via the swh db init-admin command.

I have created only one diff instead of one per service to simplify the review.

  • storage: let postgresql initialize the db and use the swh db init-admin command
  • scheduler: remove PG* variable from the db configuration
  • vault: let postgresql initialize the db and use the swh db init-admin command
  • deposit: let postgresql initialize the db
  • vault: let postgresql initialize the db and use the swh db init-admin command
  • listers: let postgresql initialize the db and use the swh db init-admin command

Test Plan

docker-compose down -v
docker-compose up

docker-compose ps

All the service must be running


Migrated from D4394 (view on Phabricator)

Merge request reports

Loading