Skip to content

Commit

Permalink
added relation
Browse files Browse the repository at this point in the history
  • Loading branch information
BWibo committed Feb 28, 2023
1 parent 04ecd53 commit cf774be
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion sddi-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,27 @@ RUN set -ex && \
https://raw.githubusercontent.com/tum-gis/ckanext-grouphierarchy-sddi/${CKAN_EXT_SDDI_VERSION}/requirements.txt && \
ls -lah /wheels

# ckanext-hierarchy ###########################################################
ARG CKAN_EXT_RELATION_VERSION="ckan-2.9"
ENV CKAN_EXT_RELATION_VERSION=${CKAN_EXT_RELATION_VERSION}

RUN set -ex && \
mkdir -p /wheels && \
pip wheel --wheel-dir=/wheels \
git+https://github.com/tum-gis/ckanext-relation-sddi.git@${CKAN_EXT_RELATION_VERSION}#egg=ckanext-relation && \
pip wheel --wheel-dir=/wheels -r \
https://raw.githubusercontent.com/tum-gis/ckanext-relation-sddi/${CKAN_EXT_RELATION_VERSION}/requirements.txt && \
curl -o /wheels/ckanext-relation.txt \
https://raw.githubusercontent.com/tum-gis/ckanext-relation-sddi/${CKAN_EXT_RELATION_VERSION}/requirements.txt && \
ls -lah /wheels

###############################################################################
# Runtime stage
###############################################################################
ARG CKAN_VERSION=2.9.7
FROM ghcr.io/keitaroinc/ckan:${CKAN_VERSION} as runtime

ENV CKAN__PLUGINS image_view text_view recline_view datastore datapusher envvars hierarchy_display hierarchy_form display_group
ENV CKAN__PLUGINS image_view text_view recline_view datastore datapusher hierarchy_display hierarchy_form display_group relation envvars

USER root

Expand All @@ -71,6 +85,11 @@ RUN set -ex && \
pip install --no-index --find-links=/srv/app/ext_wheels ckanext-grouphierarchy && \
pip install --no-index --find-links=/srv/app/ext_wheels -r /srv/app/ext_wheels/ckanext-grouphierarchy.txt

# ckanext-hierarchy ###########################################################
RUN set -ex && \
pip install --no-index --find-links=/srv/app/ext_wheels ckanext-relation && \
pip install --no-index --find-links=/srv/app/ext_wheels -r /srv/app/ext_wheels/ckanext-relation.txt

RUN set -ex && \
ckan config-tool "${APP_DIR}/production.ini" "ckan.plugins = ${CKAN__PLUGINS}" && \
chown -R ckan:ckan /srv/app && \
Expand Down

0 comments on commit cf774be

Please sign in to comment.