Closed fgrsnau closed 8 years ago
A few minor things I noticed:
Thanks, I’ll fix these.
I tried to address all the mentioned issues. Additionally I redesigned the database initialization a bit. The first substep is to initialize the database cluster and in the second step the database is created and the schema is populated. Both substeps have now meaningful traps (if there are problems with the hades
database it can be dropped by passing --clear
to init-postgres-database
without affecting other databases inside the cluster).
Between both steps the development Dockerfile will create the local radius
database. (For populating the schema of the hades
database the foreign data source has to be set up correctly.)
Thanks for addressing the issues.
I do have a minor objection though. The command names were intended no to use any specific product. Your changes introduce init-postgres-cluster
and init-postgres-database
.
Could we go with e.g. init-database-system
and init-database-schema
instead?
Done
Hades will be deployed as a bunch of systemd units to the production systems and the following commits prepare the dev environment to behave similar.
A systemd system manager is spawned and all the unnecessary units are removed.
Additionally, the dev environment creates a separate 'hades' database. Instead of using the
mysql_fdw
the foreign data is fetched from the local database usingpostgres_fdw
– making the dev environment completely independent.Currently there is a small problem with the database: The first invokation somehow fails. Nevertheless, the database is running stable: