Skip to content
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

Make the geoserver container populate the datadir, at runtime #57

Open
giohappy opened this issue Mar 7, 2025 · 0 comments · May be fixed by #58
Open

Make the geoserver container populate the datadir, at runtime #57

giohappy opened this issue Mar 7, 2025 · 0 comments · May be fixed by #58
Assignees

Comments

@giohappy
Copy link
Contributor

giohappy commented Mar 7, 2025

This task want to solve two issues at the same time:

  1. get rid of the geoserver_data image and container, whose single purpose is to bake the content of the datadir volume
  2. populate the datadir content at runtime instead of build time. This is required to allow bind mounting the datadirectory, instead of relying on Docker's internal volume. Explanation: the VOLUME directive inside the geoserver_data dir + the copying of content at build time forces the creation of an internal volume (that is shared with the geoserver image). If a bind mount is configured inside the Docker Compose configuration, it will be empty, since inside the container it's shadowed by the Docker volume. By moving the copy of datadir content at runtime we ensure that either the internal volume or a bind mounted volume is populated the first time the container is run.
@giohappy giohappy self-assigned this Mar 7, 2025
@giohappy giohappy changed the title Make the geoserver container populate the datadir at runtime Make the geoserver container populate the datadir, at runtime Mar 7, 2025
@giohappy giohappy linked a pull request Mar 7, 2025 that will close this issue
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 a pull request may close this issue.

1 participant