mirror of
https://github.com/oDinZu/natural-earth-vector.git
synced 2025-02-23 00:02:17 -05:00
add docker version
This commit is contained in:
parent
7f3eebebfa
commit
23244fd310
47
.travis.yml
47
.travis.yml
@ -9,7 +9,9 @@ matrix:
|
||||
include:
|
||||
- os: osx
|
||||
language: generic
|
||||
env: PY=3.6
|
||||
env:
|
||||
- PY=3.6
|
||||
- nedocker=NO
|
||||
before_install:
|
||||
- brew uninstall python mercurial postgis sfcgal cgal gdal
|
||||
- brew update
|
||||
@ -33,9 +35,14 @@ matrix:
|
||||
- conda install --yes -c conda-forge sparqlwrapper
|
||||
- conda install --yes -c conda-forge requests
|
||||
- pip install csvtomd
|
||||
script:
|
||||
- run_all.sh
|
||||
|
||||
|
||||
- os: linux
|
||||
env: PY=3.6
|
||||
env:
|
||||
- PY=3.6
|
||||
- nedocker=NO
|
||||
sudo: required
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
|
||||
@ -56,10 +63,17 @@ matrix:
|
||||
- conda install --yes -c conda-forge sparqlwrapper
|
||||
- conda install --yes -c conda-forge requests
|
||||
- pip install csvtomd
|
||||
script:
|
||||
- run_all.sh
|
||||
|
||||
|
||||
|
||||
|
||||
- language: python
|
||||
python: 3.6
|
||||
os: linux
|
||||
env:
|
||||
- nedocker=NO
|
||||
sudo: required
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
|
||||
@ -70,10 +84,17 @@ matrix:
|
||||
- python -c "import fiona"
|
||||
- pip3 install -U csvtomd
|
||||
- pip3 install -U requests
|
||||
script:
|
||||
- run_all.sh
|
||||
|
||||
|
||||
|
||||
|
||||
- language: python
|
||||
python: 3.5
|
||||
os: linux
|
||||
env:
|
||||
- nedocker=NO
|
||||
sudo: required
|
||||
before_install:
|
||||
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
|
||||
@ -84,12 +105,18 @@ matrix:
|
||||
- python -c "import fiona"
|
||||
- pip3 install -U csvtomd
|
||||
- pip3 install -U requests
|
||||
|
||||
script:
|
||||
- python3 ./tools/wikidata/platform_debug_info.py
|
||||
- time ./tools/wikidata/update.sh fetch
|
||||
- time ./tools/wikidata/update.sh write
|
||||
- cat x_tempshape/update.md
|
||||
- cp -r x_tempshape/10m_cultural/* 10m_cultural/
|
||||
- cp -r x_tempshape/10m_physical/* 10m_physical/
|
||||
- make clean all
|
||||
- run_all.sh
|
||||
|
||||
|
||||
|
||||
|
||||
- services: docker
|
||||
os: linux
|
||||
env:
|
||||
- nedocker=YES
|
||||
sudo: required
|
||||
before_install:
|
||||
- docker build -t ne_py3wikdata .
|
||||
script:
|
||||
- docker run -it -v $(pwd):/ne ne_py3wikdata bash run_all.sh
|
||||
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM python:3.6.5-stretch
|
||||
RUN apt-get --yes --force-yes update -qq \
|
||||
&& apt-get install --yes gdal-bin jq mc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip3 install -U SPARQLWrapper
|
||||
RUN pip3 install -U fiona
|
||||
RUN pip3 install -U csvtomd
|
||||
RUN pip3 install -U requests
|
||||
|
||||
WORKDIR /ne
|
9
run_all.sh
Executable file
9
run_all.sh
Executable file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
python3 ./tools/wikidata/platform_debug_info.py
|
||||
time ./tools/wikidata/update.sh fetch
|
||||
time ./tools/wikidata/update.sh write
|
||||
cat x_tempshape/update.md
|
||||
cp -r x_tempshape/10m_cultural/* 10m_cultural/
|
||||
cp -r x_tempshape/10m_physical/* 10m_physical/
|
||||
make clean all
|
Loading…
x
Reference in New Issue
Block a user