Skip to content

Commit

Permalink
drop ckanapi tool
Browse files Browse the repository at this point in the history
  • Loading branch information
BWibo committed Feb 8, 2023
1 parent 6de408b commit dd04357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions sddi-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
ARG CKAN_VERSION=2.9.7
FROM ghcr.io/keitaroinc/ckan:${CKAN_VERSION} as runtime

USER root
ENV CKAN__PLUGINS image_view text_view recline_view datastore datapusher envvars

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

# Copy webassets and init scripts
COPY --chown=ckan:ckan afterinit.d/ ${APP_DIR}/docker-afterinit.d/
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"
ckanapi batch -c "${APP_DIR}/production.ini" -I "$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"
echo "Create SDDI categories, topics, groups, and organizations ...done!"

0 comments on commit dd04357

Please sign in to comment.