forked from SDM-TIB/TIB_Data_Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (37 loc) · 1.87 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
FROM ckan_base
#Install supervisor for harvest jobs
USER root
RUN apt-get update && apt-get install -y supervisor
RUN mkdir -p /var/log/ckan/std/ && chmod 777 -R /var/log/ckan/std/
COPY docker/ckan_harvesting.conf /etc/supervisor/conf.d/ckan_harvesting.conf
RUN touch /var/log/supervisor/supervisord.log && chmod 777 /var/log/supervisor/supervisord.log
#Install cron
RUN apt-get install -y cron git && apt-get -q clean
COPY ./docker/cronfile /etc/cron.d/cronfile
# Give execution rights on the cron job
RUN chmod 0777 /etc/cron.d/cronfile
# Apply cron job
RUN crontab /etc/cron.d/cronfile
# Create the log file to be able to run tail
RUN touch /var/log/cron.log && chmod 777 /var/log/cron.log
#USER ckan
ADD ./Plugins/ckanext-harvest $CKAN_HOME/src/ckanext-harvest
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-harvest
RUN ckan-pip install -r $CKAN_HOME/src/ckanext-harvest/pip-requirements.txt
ADD ./Plugins/ckanext-dcat $CKAN_HOME/src/ckanext-dcat
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-dcat
RUN ckan-pip install -r $CKAN_HOME/src/ckanext-dcat/requirements.txt
ADD ./Plugins/ckanext-streamtheme $CKAN_HOME/src/ckanext-streamtheme
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-streamtheme
# dataretrieval for workshop
ADD ./Plugins/ckanext-dataretrieval $CKAN_HOME/src/ckanext-dataretrieval
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-dataretrieval
RUN ckan-pip install -r $CKAN_HOME/src/ckanext-dataretrieval/requirements.txt
ADD ./Plugins/ckanext-qualityreports $CKAN_HOME/src/ckanext-qualityreports
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-qualityreports
RUN ckan-pip install -r $CKAN_HOME/src/ckanext-qualityreports/requirements.txt
ADD ./Plugins/ckanext-tags $CKAN_HOME/src/ckanext-tags
RUN ckan-pip install -e $CKAN_HOME/src/ckanext-tags
RUN ckan-pip install -r $CKAN_HOME/src/ckanext-tags/requirements.txt
COPY ./docker/ckan-entrypoint.sh /
RUN chmod +x /ckan-entrypoint.sh