kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Run vectortile sample in tessera
rodzic
ab549f743f
commit
393ceffe5c
|
@ -0,0 +1 @@
|
|||
vector-tiles-sample
|
|
@ -1,9 +1,25 @@
|
|||
FROM node:0.12.7
|
||||
FROM node:0.10
|
||||
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 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
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/usr/src/app/run_tessera.sh"]
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
PORT=80 tessera mbtiles:///data/countries.mbtiles &
|
||||
PORT=8080 tessera tmstyle:///data/countries.tm2
|
Ładowanie…
Reference in New Issue