-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
40 lines (29 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ckan/ckan-dev:2.10.5-py3.10
# Inherit from here: https://github.com/okfn/docker-ckan/blob/master/ckan-dev/2.10/Dockerfile
# And then from here: https://github.com/okfn/docker-ckan/blob/master/ckan-base/2.10/Dockerfile
USER root
ENV CKAN_HOME=/srv/app
ENV CKAN_CONFIG=/app/config
ENV APP_DIR=/app
# ENV CKAN_ENV docker
# TODO: Figure out if these things are necessary?
# add dependencies for cryptography and vim
# RUN apk add libressl-dev musl-dev libffi-dev xmlsec vim xmlsec-dev
# Install vim and zip
RUN apt-get update -y && \
apt-get install -y vim zip xmlsec1 ncat
COPY requirements.txt requirements-dev.txt ${APP_DIR}/
ADD setup.py README.md ${APP_DIR}/
ADD ckanext ${APP_DIR}/ckanext/
RUN pip3 install --ignore-installed -r ${APP_DIR}/requirements.txt -r ${APP_DIR}/requirements-dev.txt
# COPY docker-entrypoint.d/* /docker-entrypoint.d/
# What saml2 info do we need?
# COPY saml2 ${APP_DIR}/saml2
# COPY the ini test file to the container
# COPY test-catalog-next.ini ${SRC_DIR}/ckan
# Not currently in use in development
COPY config/gunicorn.conf.py $CKAN_CONFIG/
COPY config/server_start.sh $CKAN_CONFIG/
# Custom prerun script for Solr 8
COPY config/GSA_prerun.py ${CKAN_HOME}/
COPY config/saml2 ${CKAN_HOME}/saml2