dont git clone during run and import

This commit is contained in:
Greg 2022-02-28 12:02:53 -05:00
parent a544a7fb6e
commit 9f097756bf
2 changed files with 3 additions and 1 deletions

View File

@ -199,6 +199,8 @@ 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
RUN git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 /home/renderer/src/openstreetmap-carto-backup
# Start running # Start running
COPY run.sh / COPY run.sh /
ENTRYPOINT ["/run.sh"] ENTRYPOINT ["/run.sh"]

2
run.sh
View File

@ -31,7 +31,7 @@ set -x
if [ ! -d /home/renderer/src/openstreetmap-carto ]; then if [ ! -d /home/renderer/src/openstreetmap-carto ]; then
git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 /home/renderer/src/openstreetmap-carto mv /home/renderer/src/openstreetmap-carto-backup /home/renderer/src/openstreetmap-carto
fi fi