You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,7 +26,7 @@ For Debian based systems you will need to install GDAL with::
26
26
$ sudo apt-get install python3-gdal
27
27
28
28
29
-
When using only using `requirement.txt`, the `pywps-flask` will run for the directory that was pulled from github, for a system wise installation is it advisable to use `setup.py`
29
+
When using only using `requirement.txt`, the `pywps-flask` will run for the directory that was pulled from github, for a system wise installation is it advisable to use `setup.py`::
The flag `-a` will bind to the ip range `0.0.0.0` and is normally the safest option access to `pypwps-flask`
45
45
46
-
The `-d` option will run pywps-flask as daemon and to stop it is necessary to determine the PID and kill it, one trick is to use fuser to determine PID, and then use it to kill the process
46
+
The `-d` option will run pywps-flask as daemon and to stop it is necessary to determine the PID and kill it, one trick is to use fuser to determine PID, and then use it to kill the process::
47
47
48
48
$ fuser tcp/5000
49
49
$ kill -15 <PID RETURNED PREVIOUSLY>
@@ -83,12 +83,12 @@ Pywps will be available in the following URL::
83
83
84
84
85
85
Gunicorn-Alpine (production)
86
-
---------------------------
86
+
----------------------------
87
87
88
-
This image implements the previous ``flask-alpine image`` (you need to build it first, or it will be automatically pulled from dockerhub) but wrapping flask in a WSGI server (gunicorn) where each worker runs a an app. This image allows for the following environment variables::
88
+
This image implements the previous ``flask-alpine image`` (you need to build it first, or it will be automatically pulled from dockerhub) but wrapping flask in a WSGI server (gunicorn) where each worker runs a an app. This image allows for the following environment variables:
89
89
90
-
* GU_WORKERS - Numer or workers. Gunicorn uses a set of workers to run pywps (normally ``workers = (2 * cpu) + 1``). (default: 5)
91
-
* GU_PORT - Port running Gunicorn (default:8081)
90
+
- GU_WORKERS - Numer or workers. Gunicorn uses a set of workers to run pywps (normally ``workers = (2 * cpu) + 1``). (default: 5)
91
+
- GU_PORT - Port running Gunicorn (default:8081)
92
92
93
93
94
94
@@ -102,9 +102,11 @@ To build the image (inside the folder with the Dockerfile)::
102
102
103
103
104
104
And to run it::
105
+
105
106
$ docker run -p 8081:8081 -it pywps/gunicorn-alpine:latest
This is the complete stack intented for production, to have a stack we require to use ``docker-compose``
119
121
to build two images: ``pywps/gunicorn-alpine:latest`` and ``pywps/nginx-alpine:latest``
120
122
121
-
Those images will be pulled from dockerhub, but they can compiled locally by building Flask-Alpine, Gunicron-Alpine and Nginx-Alpine, in this case only showing for nginx
123
+
Those images will be pulled from dockerhub, but they can compiled locally by building Flask-Alpine, Gunicron-Alpine and Nginx-Alpine, in this case only showing for nginx::
122
124
123
125
124
126
$ cd docker/alpine/nginx/Dockerfile
@@ -138,7 +140,7 @@ In this case pywps (only the WPS) will be avalable on::
138
140
Flask-Ubuntu (basic)
139
141
--------------------
140
142
141
-
The same as ``Flask-Ubuntu`` but using phusion image (ubuntu 18.04)
143
+
The same as ``Flask-Ubuntu`` but using phusion image (ubuntu 18.04)::
142
144
143
145
144
146
$ cd docker/ubuntu/flask/Dockerfile
@@ -152,7 +154,7 @@ And to run it::
152
154
Nginx-Ubuntu (production)
153
155
-------------------------
154
156
155
-
This image is based on ``Flask-Ubuntu`` and will require it (either build locally or pull from dockerhub). This image has Nginx and Gunicorn totally integrated as services in a docker image
157
+
This image is based on ``Flask-Ubuntu`` and will require it (either build locally or pull from dockerhub). This image has Nginx and Gunicorn totally integrated as services in a docker image::
156
158
157
159
158
160
$ cd docker/ubuntu/nginx/Dockerfile
@@ -162,7 +164,7 @@ And to run it::
162
164
163
165
$ docker run -p 80:80 pywps/nginx-ubuntu
164
166
165
-
It is possible to set the number of Gunicorn workers::
167
+
It is possible to set the number of Gunicorn workers:
166
168
167
169
* GU_WORKERS - Numer or workers. (default: 5)
168
170
@@ -185,7 +187,7 @@ Named volumes allow for container content to be available in the host system. Th
185
187
And file:
186
188
* /pywps-flask/pywps.cfg
187
189
188
-
Named volumes need to be created prior to ``docker run``
190
+
Named volumes need to be created prior to ``docker run``::
189
191
190
192
$ docker volume create pywps_logs
191
193
$ docker volume create pywps_outputs
@@ -205,18 +207,7 @@ To run a docker will all the volumes available in the host::
0 commit comments