2023-03-27 12:26:51 +02:00
|
|
|
FROM ghcr.io/mjanez/ckan-base-spatial:master
|
2021-05-13 08:34:14 +02:00
|
|
|
|
2023-03-27 12:26:51 +02:00
|
|
|
# Set up environment variables
|
2021-05-13 08:34:14 +02:00
|
|
|
ENV APP_DIR=/srv/app
|
2021-05-11 14:22:25 +02:00
|
|
|
ENV TZ=UTC
|
2021-05-12 16:25:03 +02:00
|
|
|
RUN echo ${TZ} > /etc/timezone
|
2023-03-22 10:54:57 +01:00
|
|
|
|
2021-05-11 14:25:39 +02:00
|
|
|
# Make sure both files are not exactly the same
|
2021-05-11 13:57:34 +02:00
|
|
|
RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \
|
2023-03-27 12:26:51 +02:00
|
|
|
cp /usr/share/zoneinfo/${TZ} /etc/localtime ;\
|
2022-08-16 14:02:49 +02:00
|
|
|
fi ;
|
2023-03-22 10:54:57 +01:00
|
|
|
|
|
|
|
# Extensions
|
|
|
|
### XLoader - v0.12.2 ###
|
|
|
|
RUN pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@0.12.2#egg=ckanext-xloader' && \
|
|
|
|
pip3 install -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \
|
|
|
|
pip3 install -U requests[security]
|
|
|
|
|
2023-03-23 13:51:30 +01:00
|
|
|
### Harvester - v1.5.1 ###
|
2023-03-22 10:54:57 +01:00
|
|
|
RUN echo "ckan/ckanext-harvest" && \
|
2023-03-23 13:51:30 +01:00
|
|
|
pip3 install -e 'git+https://github.com/ckan/ckanext-harvest.git@v1.5.1#egg=ckanext-harvest' && \
|
2023-03-22 10:54:57 +01:00
|
|
|
pip3 install -r ${APP_DIR}/src/ckanext-harvest/pip-requirements.txt
|
|
|
|
|
|
|
|
### Geoview - v0.0.20 ###
|
|
|
|
RUN echo "ckan/ckanext-geoview" && \
|
|
|
|
pip3 install -e 'git+https://github.com/ckan/ckanext-geoview.git@v0.0.20#egg=ckanext-geoview'
|
|
|
|
|
|
|
|
### Spatial - v2.0.0 ###
|
|
|
|
RUN echo "ckan/ckanext-spatial" && \
|
|
|
|
pip3 install -e 'git+https://github.com/ckan/ckanext-spatial.git@v2.0.0#egg=ckanext-spatial' && \
|
|
|
|
pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-spatial/bae9290395b252ee8e40056256fa694569d1d78b/requirements.txt
|
|
|
|
|
|
|
|
### DCAT - master (GeoDCAT-AP extended version) ###
|
|
|
|
RUN echo "mjanez/ckanext-dcat (GeoDCAT-AP extended version)" && \
|
|
|
|
pip3 install -e git+https://github.com/mjanez/ckanext-dcat.git#egg=ckanext-dcat && \
|
|
|
|
pip3 install -r https://raw.githubusercontent.com/mjanez/ckanext-dcat/master/requirements.txt
|
|
|
|
|
|
|
|
### Scheming - master (GeoDCAT-AP extended version) ###
|
|
|
|
RUN echo "mjanez/ckanext-scheming (GeoDCAT-AP extended version)" && \
|
|
|
|
pip3 install -e git+https://github.com/mjanez/ckanext-scheming.git#egg=ckanext-scheming
|
|
|
|
|
|
|
|
### Resource dictionary (Fix version) - main ###
|
|
|
|
RUN echo "mjanez/ckanext-resourcedictionary" && \
|
|
|
|
pip3 install -e 'git+https://github.com/mjanez/ckanext-resourcedictionary.git#egg=ckanext-resourcedictionary'
|
|
|
|
|
|
|
|
### Pages - v0.5.1 ###
|
|
|
|
RUN echo "ckan/ckanext-pages" && \
|
|
|
|
pip3 install -e git+https://github.com/ckan/ckanext-pages.git@v0.5.1#egg=ckanext-pages
|
|
|
|
|
|
|
|
### PDFView - v0.0.8 ###
|
|
|
|
RUN echo "ckan/ckanext-pdfview" && \
|
|
|
|
pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview
|
|
|
|
|
|
|
|
# Used to configure the container environment by setting environment variables, creating users, running initialization scripts, .etc
|
|
|
|
COPY docker-entrypoint.d/* /docker-entrypoint.d/
|
|
|
|
|
|
|
|
# Apply any patches needed to CKAN core
|
|
|
|
COPY patches ${APP_DIR}/patches
|
|
|
|
|
|
|
|
RUN for d in $APP_DIR/patches/*; do \
|
|
|
|
if [ -d $d ]; then \
|
|
|
|
for f in `ls $d/*.patch | sort -g`; do \
|
|
|
|
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
|
|
|
|
done ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
|
2023-03-22 16:40:05 +01:00
|
|
|
CMD ["/srv/app/start_ckan.sh"]
|