revert check for openstreetmap-carto, readme update

This commit is contained in:
Greg 2022-03-15 16:58:58 +00:00
parent b9846e1bfd
commit 43552df191
3 changed files with 7 additions and 5 deletions

View File

@ -206,7 +206,7 @@ COPY --from=compiler-modtile-renderd /root/mod_tile/osmosis-db_replag /usr/bin/o
# Install helper script # Install helper script
COPY --from=compiler-helper-script /home/renderer/src/regional /home/renderer/src/regional COPY --from=compiler-helper-script /home/renderer/src/regional /home/renderer/src/regional
COPY --from=compiler-stylesheet /root/openstreetmap-carto /home/renderer/openstreetmap-carto-backup COPY --from=compiler-stylesheet /root/openstreetmap-carto /home/renderer/src/openstreetmap-carto-backup
# Start running # Start running
COPY run.sh / COPY run.sh /

View File

@ -54,7 +54,7 @@ docker run \
### Using an alternate style ### Using an alternate style
By default the container will fetch openstreetmap-carto if it is not specified. However, you can modify the style at run-time. Be aware you need the style mounted at `run` AND `import` as the Lua script needs to be run: By default the container will use openstreetmap-carto if it is not specified. However, you can modify the style at run-time. Be aware you need the style mounted at `run` AND `import` as the Lua script needs to be run:
``` ```
docker run \ docker run \
@ -74,7 +74,9 @@ If you do not define the "NAME_*" variables, the script will default to those fo
Be sure to mount the volume during `run` with the same `-v /home/user/openstreetmap-carto-modified:/home/renderer/src/openstreetmap-carto` Be sure to mount the volume during `run` with the same `-v /home/user/openstreetmap-carto-modified:/home/renderer/src/openstreetmap-carto`
If you do not see the expected style upon `run` double check your paths as the style may not have been found at the directory specified. By default, `openstreetmap-carto` will be fetched if a style cannot be found If you do not see the expected style upon `run` double check your paths as the style may not have been found at the directory specified. By default, `openstreetmap-carto` will be used if a style cannot be found
**Only openstreetmap-carto and styles like it, eg, ones with one lua script, one style, one mml, one SQL can be used**
## Running the server ## Running the server

4
run.sh
View File

@ -29,9 +29,9 @@ fi
set -x set -x
if [ ! -d /home/renderer/src/openstreetmap-carto ]; then if [ ! "$(ls -A /home/renderer/src/openstreetmap-carto)" ]; then
mv /home/renderer/src/openstreetmap-carto-backup /home/renderer/src/openstreetmap-carto mv /home/renderer/src/openstreetmap-carto-backup/* /home/renderer/src/openstreetmap-carto/
fi fi