File tree 4 files changed +15
-13
lines changed
4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 10
10
install :
11
11
- sudo apt-get update -qq
12
12
- sudo apt-get install -qq gdal-bin libgdal-dev libgdal1h libgdal1-dev libgeos-dev python-dev python3-dev
13
- - isolation install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14
- - isolation install -r requirements.txt
13
+ - pip install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14
+ - pip install -r requirements.txt
15
15
16
16
before_script :
17
17
" python demo.py -d"
Original file line number Diff line number Diff line change 1
1
FROM alpine:3.6
2
2
MAINTAINER Jorge S. Mendes de Jesus <
[email protected] >
3
3
4
- ARG GDAL_VERSION=2.2.0
5
- ARG XERCES_VERSION=3.2.0
4
+ ARG GDAL_VERSION=2.3.2
5
+ ARG XERCES_VERSION=3.2.2
6
6
ARG PROCESSOR_N=4
7
7
8
8
RUN apk update && apk add --no-cache \
@@ -21,7 +21,8 @@ RUN apk update && apk add --no-cache \
21
21
g++ \
22
22
libstdc++ \
23
23
make \
24
- swig
24
+ swig
25
+
25
26
RUN apk add --no-cache \
26
27
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
27
28
geos \
Original file line number Diff line number Diff line change 1
- FROM alpine:latest
1
+ FROM alpine:3.6
2
2
MAINTAINER Jorge S. Mendes de Jesus <
[email protected] >
3
3
4
- ENV GDAL_VERSION 2.2.0
5
- ENV XERCES_VERSION 3.2.0
4
+ ARG GDAL_VERSION=2.3.2
5
+ ARG XERCES_VERSION=3.2.2
6
+ ARG PROCESSOR_N=4
6
7
7
- RUN apk add --no-cache \
8
+ RUN apk update && apk add --no-cache \
8
9
git \
9
10
gcc \
10
11
bash \
@@ -26,7 +27,7 @@ RUN wget http://www.apache.org/dist/xerces/c/3/sources/xerces-c-${XERCES_VERSION
26
27
tar xvf /tmp/xerces-c-${XERCES_VERSION}.tar.gz -C /tmp && \
27
28
cd /tmp/xerces-c-${XERCES_VERSION} && \
28
29
./configure --prefix=/opt/xerces && \
29
- make -j 4 && \
30
+ make -j $PROCESSOR_N && \
30
31
make install
31
32
32
33
# Geos
@@ -40,13 +41,13 @@ RUN wget http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar
40
41
tar xzf /tmp/gdal.tar.gz -C /tmp && \
41
42
cd /tmp/gdal-${GDAL_VERSION} && \
42
43
CFLAGS="-g -Wall" LDFLAGS="-s" ./configure --with-expat=yes --with-xerces=/opt/xerces --with-geos=yes \
43
- && make -j 4 && make install
44
+ && make -j $PROCESSOR_N && make install
44
45
45
46
RUN cd /tmp/gdal-${GDAL_VERSION}/swig/python \
46
47
&& python3 setup.py build \
47
48
&& python3 setup.py install
48
49
49
- RUN git clone https://github.com/lazaa32 /pywps-flask.git
50
+ RUN git clone https://github.com/geopython /pywps-flask.git
50
51
51
52
WORKDIR /pywps-flask
52
53
RUN pip3 install -r requirements.txt
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM phusion/baseimage:0.9.22
3
3
MAINTAINER Jorge S. Mendes de Jesus <
[email protected] >
4
4
5
5
ARG ROOTDIR=/usr/local/
6
- ARG GDAL_VERSION=2.2.3
6
+ ARG GDAL_VERSION=2.3.2
7
7
ARG PROCESSOR_N=8
8
8
9
9
WORKDIR $ROOTDIR/
You can’t perform that action at this time.
0 commit comments