diff --git a/ckan/Dockerfile b/ckan/Dockerfile index 57db4212..a15b5442 100644 --- a/ckan/Dockerfile +++ b/ckan/Dockerfile @@ -15,15 +15,13 @@ COPY req_fixes req_fixes ## Harvest - v1.5.6 (Worker with supervisor) ## ## Geoview - v0.1.0 ## ## Spatial - v2.1.1 ## -## DCAT - v1.6.0 (mjanez/GeoDCAT-AP/NTI-RISP extended version) ## +## DCAT - v1.8.0-alpha (mjanez/GeoDCAT-AP/NTI-RISP extended version) ## ## Scheming - release-3.0.0 ## ## Resource dictionary - v1.0.1 (mjanez/Fixed version) ## ## Pages - v0.5.2 ## ## PDFView - 0.0.8 ## ## Fluent - v1.0.1 (mjanez/Forked stable version) ## -## Scheming DCAT - v3.2.1 (IEPNB compatible/GeoDCAT-AP extended version & Harvesters) ## -## SPARQL Interface - 2.0.3-iepnb ## -## IEPNB Theme - 2.2.1 ## +## Scheming DCAT - v3.2.2 (mjanez/GeoDCAT-AP/NTI-RISP extended version) ## RUN echo ${TZ} > /etc/timezone && \ if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then cp /usr/share/zoneinfo/${TZ} /etc/localtime; fi && \ # Remove apk cache @@ -41,8 +39,8 @@ RUN echo ${TZ} > /etc/timezone && \ echo "ckan/ckanext-spatial" && \ pip3 install --no-cache-dir -e git+https://github.com/ckan/ckanext-spatial.git@v2.1.1#egg=ckanext-spatial && \ pip3 install --no-cache-dir -r ${APP_DIR}/req_fixes/ckanext-spatial/requirements.txt && \ - echo "mjanez/ckanext-dcat (GeoDCAT-AP/NTI-RISP extended version)" && \ - pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-dcat.git@v1.6.0#egg=ckanext-dcat && \ + echo "mjanez/ckanext-dcat (GeoDCAT-AP extended version)" && \ + pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-dcat.git@v1.8.0-alpha#egg=ckanext-dcat && \ pip3 install --no-cache-dir -r ${APP_DIR}/src/ckanext-dcat/requirements.txt && \ echo "ckan/ckanext-scheming" && \ pip3 install --no-cache-dir -e git+https://github.com/ckan/ckanext-scheming.git@release-3.0.0#egg=ckanext-scheming && \ @@ -54,9 +52,9 @@ RUN echo ${TZ} > /etc/timezone && \ pip3 install --no-cache-dir -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview && \ echo "mjanez/ckanext-fluent (mjanez/Forked stable version)" && \ pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-fluent.git@v1.0.1#egg=ckanext-fluent && \ - echo "mjanez/ckanext-schemingdcat (GeoDCAT-AP/NTI-RISP extended version)" && \ - pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-schemingdcat.git@v3.2.1#egg=ckanext_schemingdcat && \ - pip3 install --no-cache-dir -r https://raw.githubusercontent.com/mjanez/ckanext-schemingdcat/v3.2.1/requirements.txt && \ + echo "mjanez/ckanext-schemingdcat" && \ + pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-schemingdcat.git@v3.2.2#egg=ckanext_schemingdcat && \ + pip3 install --no-cache-dir -r ${APP_DIR}/src/ckanext-schemingdcat/requirements.txt && \ echo "OpenDataGIS/ckanext-iepnb" && \ pip3 install --no-cache-dir -e git+https://github.com/OpenDataGIS/ckanext-iepnb.git@2.2.1#egg=ckanext-iepnb && \ pip3 install --no-cache-dir -r https://raw.githubusercontent.com/OpenDataGIS/ckanext-iepnb/2.2.1/requirements.txt && \ @@ -74,12 +72,19 @@ COPY setup/who.ini ./ COPY patches 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 + if [ -d $d ]; then \ + for f in `ls $d/*.patch | sort -g`; do \ + cd $SRC_DIR/`basename "$d"` && \ + if patch -R --dry-run -p1 < "$f"; then \ + echo "$0: Patch $f has already been applied or reversed, skipping..."; \ + else \ + echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; \ + sed -i 's/\r$//' "$f" && \ + patch -p1 < "$f" ; \ + fi \ + done ; \ + fi ; \ +done # Workers ## Update start_ckan.sh with custom workers