Spotter-VM/lxc-apps/ckan/ckan-datapusher.image

31 lines
974 B
Plaintext
Raw Normal View History

IMAGE ckan-datapusher_0.0.16-210106
FROM alpine3.12-python3.8_3.8.5-210106
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 uwsgi-python3
2018-09-05 17:41:38 +02:00
# Install build dependencies
apk --no-cache add --virtual .deps build-base git libffi-dev libressl-dev libxml2-dev libxslt-dev python3-dev
2018-09-05 17:41:38 +02:00
# Install CKAN DataPusher
mkdir -p /srv/ckan-datapusher
cd /srv/ckan-datapusher
pip install -e 'git+https://github.com/ckan/datapusher.git@eb4686030ed6911a5294c62bf275ddbbc4b26114#egg=datapusher'
pip install -r /srv/ckan-datapusher/src/datapusher/requirements.txt
2018-09-05 17:41:38 +02:00
# 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
2020-03-13 20:10:24 +01:00
COPY ckan-datapusher.image.d
2018-09-05 17:41:38 +02:00
2020-03-13 20:10:24 +01:00
CMD /bin/execlineb -P /run