Create a script that intitializes the database.
#5
Closed
opened 4 years ago by youainti
·
3 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Create a dockerfile that sets up the database, then runs scripts to configure the database, incliding
Set it up as a dockerfile so that it can be published seperately.
https://stackoverflow.com/questions/57342238/how-to-start-with-docker-dockerfile-and-docker-compose
more info
https://jpdeffo.medium.com/dockerfile-and-docker-compose-file-in-a-nutshell-4b2916cb35fe
My thought is that if I set this up as a dockerfile, I may be able to add more confiuration option.
Done.
Final archetecture was to use a dockerfile to construct the aact database, and inherit from it with another dockerfile to create the results. A docker-compose file was then written to initialize it with all the required data and the pgadmin utility.
see
0bd7965112for the commit I used.