Skip to content

Commit

Permalink
Merge pull request #2679 from kocio-pl/kosmtik-plugins
Browse files Browse the repository at this point in the history
Adding Kosmtik plugins to Docker
  • Loading branch information
kocio-pl authored Jul 9, 2017
2 parents 2e62b40 + 9aacdb3 commit 91fd10a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,23 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash \
&& apt-get install --no-install-recommends -y nodejs \
&& rm -rf /var/lib/apt/lists/*

# Kosmtik with plugins
RUN npm install -g kosmtik

WORKDIR /usr/lib/node_modules/kosmtik/
RUN kosmtik plugins --install kosmtik-overpass-layer \
--install kosmtik-fetch-remote \
--install kosmtik-overlay \
--install kosmtik-open-in-josm \
--install kosmtik-map-compare \
--install kosmtik-osm-data-overlay \
--install kosmtik-mapnik-reference \
--install kosmtik-geojson-overlay \
&& cp /root/.config/kosmtik.yml /tmp/.kosmtik-config.yml

# Closing section
RUN mkdir -p /openstreetmap-carto
WORKDIR /openstreetmap-carto

USER 1000
CMD sh scripts/docker-startup.sh kosmtik
CMD sh scripts/docker-startup.sh kosmtik
5 changes: 1 addition & 4 deletions scripts/docker-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ import)
kosmtik)
python scripts/get-shapefiles.py -n

mkdir -p .config
if [ ! -e ".kosmtik-config.yml" ]; then
touch .kosmtik-config.yml
# this can be removed once https://github.com/kosmtik/kosmtik/issues/236 is resolved
echo "plugins:" >> .kosmtik-config.yml
cp /tmp/.kosmtik-config.yml .kosmtik-config.yml
fi
export KOSMTIK_CONFIGPATH=".kosmtik-config.yml"

Expand Down

0 comments on commit 91fd10a

Please sign in to comment.