Skip to content

Commit 9187733

Browse files
committed
Cosmetics, ultimate_question reverted back to status=false
1 parent 7290b39 commit 9187733

File tree

5 files changed

+69
-10
lines changed

5 files changed

+69
-10
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ workdir/*
33
outputs/*
44
logs/*
55

6-
docker/izolation*
7-
86
# vim, mac os
97
*.sw*
108
.DS_Store

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ git:
1010
install:
1111
- sudo apt-get update -qq
1212
- sudo apt-get install -qq gdal-bin libgdal-dev libgdal1h libgdal1-dev libgeos-dev python-dev python3-dev
13-
- izolation install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14-
- izolation install -r requirements.txt
13+
- isolation install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14+
- isolation install -r requirements.txt
1515

1616
before_script:
1717
"python demo.py -d"

docker/isolation/Dockerfile

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
FROM alpine:latest
2+
MAINTAINER Jorge S. Mendes de Jesus <[email protected]>
3+
4+
ENV GDAL_VERSION 2.2.0
5+
ENV XERCES_VERSION 3.2.0
6+
7+
RUN apk add --no-cache \
8+
git \
9+
gcc \
10+
bash \
11+
openssh \
12+
musl-dev \
13+
python3 \
14+
python3-dev \
15+
libxml2-dev \
16+
libxslt-dev \
17+
linux-headers \
18+
expat \
19+
expat-dev
20+
21+
22+
RUN apk --update --no-cache add g++ libstdc++ make swig
23+
24+
# Xerces
25+
RUN wget http://www.apache.org/dist/xerces/c/3/sources/xerces-c-${XERCES_VERSION}.tar.gz -O /tmp/xerces-c-${XERCES_VERSION}.tar.gz && \
26+
tar xvf /tmp/xerces-c-${XERCES_VERSION}.tar.gz -C /tmp && \
27+
cd /tmp/xerces-c-${XERCES_VERSION} && \
28+
./configure --prefix=/opt/xerces && \
29+
make -j 4 && \
30+
make install
31+
32+
# Geos
33+
RUN apk add --no-cache \
34+
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
35+
geos \
36+
geos-dev
37+
38+
# Install GDAL
39+
RUN wget http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz -O /tmp/gdal.tar.gz && \
40+
tar xzf /tmp/gdal.tar.gz -C /tmp && \
41+
cd /tmp/gdal-${GDAL_VERSION} && \
42+
CFLAGS="-g -Wall" LDFLAGS="-s" ./configure --with-expat=yes --with-xerces=/opt/xerces --with-geos=yes \
43+
&& make -j 4 && make install
44+
45+
RUN cd /tmp/gdal-${GDAL_VERSION}/swig/python \
46+
&& python3 setup.py build \
47+
&& python3 setup.py install
48+
49+
RUN git clone https://github.com/lazaa32/pywps-flask.git
50+
51+
WORKDIR /pywps-flask
52+
RUN pip3 install -r requirements.txt
53+
54+
55+
EXPOSE 5000
56+
ENTRYPOINT ["/usr/bin/python3", "demo.py","-a"]
57+
58+
#docker build -t pywps-flask .
59+
#docker run -p 5000:5000 pywps-flask
60+
#http://localhost:5000/wps?request=GetCapabilities&service=WPS
61+
#http://localhost:5000/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0

processes/ultimate_question.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self):
2222
metadata=[Metadata('Ultimate Question'), Metadata('What is the meaning of life')],
2323
inputs=inputs,
2424
outputs=outputs,
25-
store_supported=True,
26-
status_supported=True
25+
store_supported=False,
26+
status_supported=False
2727
)
2828

2929
def _handler(self, request, response):

pywps.cfg

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata:main]
22
identification_title=PyWPS Demo server
3-
identification_abstract=PyWPS testing and development server. Do NOT use this server in production environement. You shall setup PyWPS as WSGI application for production. Please refer documentation for further detials.
3+
identification_abstract=PyWPS testing and development server. Do NOT use this server in production environment. You shall setup PyWPS as WSGI application for production. Please refer documentation for further detials.
44
identification_keywords=WPS,GRASS,PyWPS, Demo, Dev
55
identification_keywords_type=theme
66
identification_fees=None
@@ -32,13 +32,13 @@ workdir=workdir
3232
wd_inp_subdir=inputs
3333
wd_out_subdir=outputs
3434
maxprocesses=10
35-
parallelprocesses=6
35+
parallelprocesses=10
3636
3737
[processing]
38-
mode=multiprocessing
38+
mode=docker
3939
port_min=5050
4040
port_max=5070
41-
docker_img=pywps_container
41+
docker_img=container
4242
dckr_inp_dir=/pywps-flask/data
4343
dckr_out_dir=/pywps-flask/outputs
4444

0 commit comments

Comments
 (0)