2019-09-18 11:29:58 +02:00
|
|
|
IMAGE ckan-datapusher_0.0.13-190620
|
2019-06-25 15:56:35 +02:00
|
|
|
|
2019-09-18 11:29:58 +02:00
|
|
|
LAYER alpine3.9_3.9.4-190620
|
|
|
|
LAYER alpine3.9-python2.7_2.7.16-190620
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-12 16:08:10 +02:00
|
|
|
RUN EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
# Install runtime dependencies
|
|
|
|
apk --no-cache add libffi libressl uwsgi-python
|
|
|
|
|
|
|
|
# Install build dependencies
|
|
|
|
apk --no-cache add --virtual .deps build-base git libffi-dev libressl-dev libxml2-dev libxslt-dev py2-pip python2-dev
|
|
|
|
|
|
|
|
# Install CKAN DataPusher
|
|
|
|
mkdir -p /srv/ckan-datapusher
|
|
|
|
cd /srv/ckan-datapusher
|
|
|
|
pip install -U setuptools
|
|
|
|
pip install -e 'git+https://github.com/ckan/datapusher.git#egg=datapusher'
|
|
|
|
|
|
|
|
# Hackfix the X509_STORE_CTX wrapper
|
|
|
|
sed -i 's/\[security\]//' /srv/ckan-datapusher/src/datapusher/requirements.txt
|
|
|
|
pip install -r /srv/ckan-datapusher/src/datapusher/requirements.txt
|
|
|
|
|
|
|
|
# Create OS user
|
2019-09-18 11:29:58 +02:00
|
|
|
addgroup -S -g 8080 ckandp
|
|
|
|
adduser -S -u 8080 -h /srv/ckan-datapusher -s /bin/false -g ckandp -G ckandp ckandp
|
2018-09-05 17:41:38 +02:00
|
|
|
chown -R ckandp:ckandp /srv/ckan-datapusher
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
apk --no-cache del .deps
|
|
|
|
find /srv/ckan-datapusher/src -name '.git*' -exec rm -rf {} +
|
|
|
|
rm -rf /root/.cache
|
2018-09-12 16:08:10 +02:00
|
|
|
EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2019-10-05 15:01:03 +02:00
|
|
|
COPY ckan-datapusher.lxc
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD execlineb -P /run
|