-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
50 lines (39 loc) · 2.17 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
41
42
43
44
45
46
47
48
49
50
FROM quay.io/okfn/python2:1.0.0
MAINTAINER Open Knowledge <[email protected]>
ENV APP_WSGI=ckan.wsgi
ENV GIT_BRANCH=release-v2.6-latest
ENV GIT_URL=https://github.com/ckan/ckan.git
ENV CKAN_INI=production.ini
ENV SRC_DIR=${APP_DIR}/src
RUN mkdir ${WORKSPACE} ${SRC_DIR} && cd ${SRC_DIR} && \
git clone -b ${GIT_BRANCH} --depth=1 --single-branch \
${GIT_URL} ckan && \
cd ckan && \
cp who.ini ${APP_DIR} && \
python setup.py develop && \
pip install --upgrade -r requirements.txt
COPY ${SETUP}/${APP_CONF} ${SUPERVISOR_DIR}/${APP_CONF}
COPY ${SETUP} ${APP_DIR}
ENV APP_WSGI ckan.wsgi
COPY ${SETUP}/dump_env.conf ${SUPERVISOR_DIR}/dump_env.conf
COPY ${SETUP}/dump_env.py ${APP_DIR}/dump_env.py
WORKDIR ${APP_DIR}
# Add ckan command
RUN ln -s ${APP_DIR}/ckan /usr/bin/ckan
# We need setuptools<19.4, otherwise ckanext-oauth2 can not be installed because of
# https://bitbucket.org/pypa/setuptools/issues/491/setuptools-194-breaks-pip-install-builds
# This can be removed once this is merged:
# https://github.com/conwetlab/ckanext-oauth2/pull/7
RUN pip install setuptools==19.3
# Install FIWARE specific extensions
RUN pip install -e git+https://github.com/conwetlab/ckanext-datarequests.git#egg=ckanext-datarequests && \
pip install -e git+https://github.com/conwetlab/ckanext-fiware_header.git#egg=ckanext-fiware_header && \
pip install -e git+https://github.com/okfn/ckanext-fiwarelabs.git#egg=ckanext-fiwarelabs && \
pip install -e git+https://github.com/ckan/ckanext-geoview.git#egg=ckanext-geoview && \
pip install -e git+https://github.com/telefonicaid/ckanext-ngsiview#egg=ckanext-ngsiview && \
pip install -e git+https://github.com/conwetlab/ckanext-oauth2#egg=ckanext-oauth2 && \
pip install -e git+https://github.com/ckan/ckanext-pdfview.git#egg=ckanext-pdfview && \
pip install -e git+https://github.com/ckan/ckanext-harvest.git#egg=ckanext-harvest && \
pip install -r ${APP_DIR}/src/ckanext-harvest/pip-requirements.txt && \
pip install -e git+https://github.com/conwetlab/ckanext-privatedatasets.git#egg=ckanext-privatedatasets && \
pip install -e git+https://github.com/conwetlab/ckanext-storepublisher.git#egg=ckanext-storepublisher