Skip to content

Commit

Permalink
Revert "drop ckanapi tool"
Browse files Browse the repository at this point in the history
This reverts commit dd04357.
  • Loading branch information
BWibo committed Feb 9, 2023
1 parent 1b02ac7 commit 0dd7dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions sddi-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
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

USER root

# Install runtime dependencies
RUN set -ex && \
pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -U ckanapi

# Copy webassets and init scripts
COPY --chown=ckan:ckan afterinit.d/ ${APP_DIR}/docker-afterinit.d/
COPY --chown=ckan:ckan webassets/ ${DATA_DIR}/webassets/
Expand Down
2 changes: 1 addition & 1 deletion sddi-base/afterinit.d/01_create_groups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

echo "Create SDDI categories, topics, groups, and organizations ..."
envsubst < "$APP_DIR/docker-afterinit.d/groups.jsonl" > "$APP_DIR/docker-afterinit.d/groups_subst.jsonl"
ckan -c "${APP_DIR}/production.ini" api batch -c "${APP_DIR}/production.ini" -I "$APP_DIR/docker-afterinit.d/groups_subst.jsonl"
ckanapi batch -c "${APP_DIR}/production.ini" -I "$APP_DIR/docker-afterinit.d/groups_subst.jsonl"
echo "Create SDDI categories, topics, groups, and organizations ...done!"

0 comments on commit 0dd7dd7

Please sign in to comment.