Make it easier to change style

This commit is contained in:
galewis2 2022-01-24 13:27:16 -05:00 committed by GitHub
parent 672e2cd5b3
commit 9df02dc253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,10 +75,14 @@ RUN cd ~ \
########################################################################################################### ###########################################################################################################
FROM compiler-common AS compiler-stylesheet FROM compiler-common AS compiler-stylesheet
ARG STYLE_REPO="https://github.com/gravitystorm/openstreetmap-carto.git"
ARG STYLE_BRANCH="v5.3.1"
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
npm npm
RUN cd ~ \ RUN cd ~ \
&& git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \ && git clone --single-branch --branch ${STYLE_BRANCH} ${STYLE_REPO} --depth 1 \
&& cd openstreetmap-carto \ && cd openstreetmap-carto \
&& sed -ie 's#https:\/\/naciscdn.org\/naturalearth\/110m\/cultural\/ne_110m_admin_0_boundary_lines_land.zip#https:\/\/naturalearth.s3.amazonaws.com\/110m_cultural\/ne_110m_admin_0_boundary_lines_land.zip#g' external-data.yml \ && sed -ie 's#https:\/\/naciscdn.org\/naturalearth\/110m\/cultural\/ne_110m_admin_0_boundary_lines_land.zip#https:\/\/naturalearth.s3.amazonaws.com\/110m_cultural\/ne_110m_admin_0_boundary_lines_land.zip#g' external-data.yml \
&& npm install -g carto@0.18.2 \ && npm install -g carto@0.18.2 \