Skip to content

Commit

Permalink
#138 pin all Python required packages and Docker Python-Alpine version
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Nov 6, 2018
1 parent ba38d0d commit 0b7cb75
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:2.7.13-alpine
FROM python:2.7.15-alpine3.8

# Thanks to http://www.sandtable.com/reduce-docker-image-sizes-using-alpine
# FROM debian:jessie
Expand Down
16 changes: 5 additions & 11 deletions docker/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ virtualenv venv && cd /venv
. bin/activate

# GHC Source was added in Dockerfile, install
cd /GeoHealthCheck
pip install Paver
pip install sphinx

# For PostGIS support
pip install psycopg2

# For WSGI server
# NB we use async workers as some Probes may take a long time
# NB we use gunicorn/eventlet async workers as some Probes may take a long time
# e.g. fetching Metadata (Caps) and testing all layers
pip install -I eventlet
pip install -I gunicorn
# Install Python packages for installation and setup
pip install -I -r /GeoHealthCheck/docker/scripts/requirements.txt

cd /GeoHealthCheck

# Sets up GHC itself
paver setup
Expand Down
5 changes: 5 additions & 0 deletions docker/scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Paver==1.3.4
Sphinx==1.8.1
psycopg2==2.7.5
eventlet==0.24.1
gunicorn==19.9.0
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flake8
Paver
Paver==1.3.4
pylint
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Flask-Login==0.2.11
Flask-Migrate==2.0.3
Flask-Script==2.0.5
Flask-SQLAlchemy==2.1
OWSLib
Sphinx
OWSLib==0.17.0
Sphinx==1.8.1
requests>=2.20.0
WTForms==2.1
APScheduler==3.5.1

0 comments on commit 0b7cb75

Please sign in to comment.