Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
updated packages and modified dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin IGARASHI committed Aug 5, 2020
1 parent 97cd9f4 commit 15ea32a
Show file tree
Hide file tree
Showing 5 changed files with 656 additions and 71 deletions.
23 changes: 7 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ RUN apt-get update \
wget \
git \
nodejs \
npm \
python3 \
python3-setuptools
npm

# Build tippecanoe
RUN mkdir -p /tmp/src
Expand All @@ -24,22 +22,15 @@ WORKDIR /tmp/src/tippecanoe
RUN make \
&& make install

# Install mbutil
WORKDIR /tmp/src
RUN git clone git://github.com/mapbox/mbutil.git
WORKDIR /tmp/src/mbutil
RUN python3 setup.py install

# Install Nodejs
RUN npm cache clean && npm install n -g && n stable \
&& n 12.14.1 && ln -sf /usr/local/bin/node /usr/bin/node

# Install vt-map
RUN cd /tmp/src \
&& git clone https://github.com/narwassco/vt-map.git \
&& cd vt-map \
&& npm install
RUN mkdir -p /tmp/src/vt-map
WORKDIR /tmp/src/vt-map
COPY . /tmp/src/vt-map
RUN npm install

ADD docker-entrypoint.sh /tmp/docker-entrypoint.sh
RUN chmod +x /tmp/docker-entrypoint.sh
CMD ["/tmp/docker-entrypoint.sh"]
RUN chmod a+x /tmp/src/vt-map/docker-entrypoint.sh
CMD ["/tmp/src/vt-map/docker-entrypoint.sh"]
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ $ make -j
$ make install
```

### mbutil
This module uses [mbutil](https://github.com/mapbox/mbutil) to extract mvt files from mbtiles. Please make sure install it on your python3.

for MacOS & Ubuntu
```
git clone git://github.com/mapbox/mbutil.git
cd mbutil
sudo python setup.py install
```

### main module
```
git clone https://github.com/narwassco/vt-map.git
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2'
services:
nodejs:
image: narwassco/vt-map:v0.0.4
#build: .
image: narwassco/vt-map:v0.0.5
build: .
env_file:
- ./app-docker.env
volumes:
Expand Down
Loading

0 comments on commit 15ea32a

Please sign in to comment.