[breaking] changed volume mount points #261
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a proposal for issue #257
Changed mount points compared to before:
/var/lib/postgresql/14/main/
=>/data/database/
/var/lib/mod_tile/
=>/data/tiles/
/home/renderer/src/openstreetmap-carto/
=>/data/style/
/data.osm.pbf
=>/data/region.osm.pbf
/data.poly
=>/data/region.poly
/nodes/flat_nodes.bin
=> deprecatedThe
flat-nodes
can now be enabled instead with an environment variableFLAT_NODES=enabled
duringimport
. It will save the generated file in the/data/database/
volume. The automated update onrun
will therefore correctly use the saved file automatically, if it were created duringimport
. Before this change a user could forget about theflat-nodes
file which breakes the automated updates.Because some files are needed later and should never be separated from the database, the import does save those files now into
/data/databases/
:/data/database/region.poly
/data/database/flat_nodes.bin
/data/database/planet-import-complete
To separate the actual postres database files from these files,
/var/lib/postgresql/14/main/
is actually stored at/data/database/postgres/
.(The postgresql service is restricting the permissions for
/var/lib/postgresql/14/main/
which preventsrenderer
from accessing it:"[41] FATAL: data directory "/var/lib/postgresql/14/main" has invalid permissions [41] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750)."
unless we wanted to addrenderer
to thepostgres
group.)I also created the merge branch issue-254-257 for this pull requests merged together with pull request #260.Addition change to /.github/workflows/build-and-test.yaml for both:[Edit:] this is merged now.
You can test this PR with the docker image ghcr.io/istador/openstreetmap-tile-server:2.0.0 that was build automatically by pushing a
v2.0.0
tag on that merge branch.This is a breaking change that requires a major version bump, e.g. to
2.0.0
.