You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the postgres database is deployed via the web container by executing ant create-schema. But it would probably be useful to deploy it as part of docker-compose.
Docker image postgres:8.4 can run sh files in /docker-entrypoint-initdb.d/ as a part of the first run of docker-compose, but not sql files for instance. sql files are supported in more recent postgres docker images, but that would require ./poem-jvm/data/database/db_schema.sql to be (made) compatible.
The current workaround is to copy in ./poem-jvm/Dockerfile:
It appears to be executed correctly using $ docker-compose -f docker-compose.yml up but the schema is not accessible when visiting http://localhost:9090/backend/poem/repository and requires further investigation/correction.
Steps to reproduce:
$ git checkout docker-setup
Development in branch: docker-setup
Currently the postgres database is deployed via the web container by executing
ant create-schema
. But it would probably be useful to deploy it as part of docker-compose.Docker image postgres:8.4 can run sh files in /docker-entrypoint-initdb.d/ as a part of the first run of docker-compose, but not sql files for instance. sql files are supported in more recent postgres docker images, but that would require ./poem-jvm/data/database/db_schema.sql to be (made) compatible.
The current workaround is to copy in ./poem-jvm/Dockerfile:
Where ./poem-jvm/data/database/db_schema.sh executes the following:
It appears to be executed correctly using
$ docker-compose -f docker-compose.yml up
but the schema is not accessible when visiting http://localhost:9090/backend/poem/repository and requires further investigation/correction.Related material:
The text was updated successfully, but these errors were encountered: