Run vectortile sample in tessera

pull/19/head
Lukas Martinelli 2015-09-18 04:17:04 -04:00
rodzic ab549f743f
commit 393ceffe5c
3 zmienionych plików z 24 dodań i 3 usunięć

Wyświetl plik

@ -0,0 +1 @@
vector-tiles-sample

Wyświetl plik

@ -1,9 +1,25 @@
FROM node:0.12.7 FROM node:0.10
MAINTAINER Lukas Martinelli <me@lukasmartinelli.ch> MAINTAINER Lukas Martinelli <me@lukasmartinelli.ch>
RUN mkdir -p /tmp/mapbox-studio-default-fonts && \
mkdir -p /fonts && \
git clone https://github.com/mapbox/mapbox-studio-default-fonts.git /tmp/mapbox-studio-default-fonts && \
cp /tmp/mapbox-studio-default-fonts/**/*.otf /fonts && \
cp /tmp/mapbox-studio-default-fonts/**/*.ttf /fonts && \
rm -rf /tmp/mapbox-studio-default-fonts
ENV MAPNIK_FONT_PATH=/fonts
RUN npm install -g tessera RUN npm install -g tessera
RUN npm install -g mbtiles tilelive-tmstyle tilelive-tmsource RUN npm install -g mbtiles \
tilelive-tmstyle \
tilelive-http
COPY run_tessera.sh /usr/src/app/run_tessera.sh
VOLUME /data VOLUME /data
WORKDIR /data
EXPOSE 80
EXPOSE 8080 EXPOSE 8080
CMD ["/usr/src/app/run_tessera.sh"]

Wyświetl plik

@ -0,0 +1,4 @@
#!/bin/bash
PORT=80 tessera mbtiles:///data/countries.mbtiles &
PORT=8080 tessera tmstyle:///data/countries.tm2