Skip to content

By default the Docker run will make use of in-memory mount destinations #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robert-bor
Copy link
Contributor

Issue #29 by default the Docker run will make use of in-memory mounts for the application and data path in the standard Postgres Docker image. If in-memory must be disabled, it can be done in the properties. Custom paths can be passed as a list under the inMemoryMountDestinations list.

The init process has been revamped to make it less reliable on the first lazy call of getProperties().

The in-memory solution requires a dynamic number of mount mappings. The solution is to insert a template (IN_MEMORY_TEMPLATE), which is transformed into the required number of --mount mappings for Docker. IN_MEMORY_TEMPLATE is hardcoded for now. Not sure if it is sensible to make this customizable.

… for the application and data path in the standard Postgres Docker image. If in-memory must be disabled, it can be done in the properties. Custom paths can be passed as a list under the inMemoryMountDestinations list.

The init process has been revamped to make it less reliable on the first lazy call of getProperties().

The in-memory solution requires a dynamic number of mount mappings. The solution is to insert a template (IN_MEMORY_TEMPLATE), which is transformed into the required number of --mount mappings for Docker. IN_MEMORY_TEMPLATE is hardcoded for now. Not sure if it is sensible to make this customizable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants