OpenConext / OpenConext-devconf

Contains configuration file to get an development environment up and running
Apache License 2.0
0 stars 1 forks source link

Add script to do all the (first time) database initialisation #4

Open pmeulen opened 1 year ago

pmeulen commented 1 year ago

The script can be safely run multiple times, e.g. to upgrade the database schema for new versions, or to update the middleware configuration

pmeulen commented 1 year ago

nice, this will make the initial setup easier. We also need to update the README.md to reflect this?

Yes, I had held back this change because #5 modified the README as well. I've now rebased and updated the README with the new instructions.

pmeulen commented 1 year ago

As discussed in https://github.com/OpenConext/Stepup-Middleware/pull/410, running the console command as root is troublesome because it messes op the ownership of the Symfony cache. I've added chowns the the init script to fix that.

Another option would be to use sudo, but that would require adding the sudo package to the base container(s). That could be a better solution to cache ownership issue.