Fix CKAN service provider instead

This commit is contained in:
Disassembler 2020-03-14 11:10:36 +01:00
parent 157a0b8660
commit e02fc0f97d
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -13,11 +13,11 @@ RUN EOF
cd /srv/ckan-datapusher
pip install -U setuptools
pip install -e 'git+https://github.com/ckan/datapusher.git@e662e3c33e069ac174cdb4fb1d61121f0ba4bb3a#egg=datapusher'
# Hackfix Flask to not install werkzeug==1.0.0
pip install werkzeug==0.14.1
pip install -r /srv/ckan-datapusher/src/datapusher/requirements.txt
# Hackfix werkzeug==1.0.0 proxy_fix import
sed -i 's/werkzeug\.contrib\.fixers/werkzeug.middleware.proxy_fix/' /usr/lib/python2.7/site-packages/ckanserviceprovider/web.py
# Create OS user
addgroup -S -g 8080 ckandp
adduser -S -u 8080 -h /srv/ckan-datapusher -s /bin/false -g ckandp -G ckandp ckandp