updating s3filestore example to use CKAN 2.9 (#52)

This commit is contained in:
Blagoja Stojkoski 2021-05-20 11:34:55 +02:00 committed by GitHub
parent a9090c9793
commit fa62c30b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ CKAN_SITE_URL=http://localhost:5000
CKAN_PORT=5000
CKAN_MAX_UPLOAD_SIZE_MB=10
# CKAN Plugins
CKAN__PLUGINS=envvars s3filestore image_view text_view recline_view datastore datapusher
CKAN__PLUGINS=envvars s3filestore image_view webpage_view text_view recline_view datastore datapusher
# CKAN requires storage path to be set in order for filestore to be enabled
CKAN__STORAGE_PATH=/srv/app/data
CKAN__WEBASSETS__PATH=/srv/app/data/webassets
@ -16,6 +16,7 @@ CKAN__WEBASSETS__PATH=/srv/app/data/webassets
CKAN_SYSADMIN_NAME=sysadmin
CKAN_SYSADMIN_PASSWORD=password
CKAN_SYSADMIN_EMAIL=sysadmin@ckantest.com
CKAN__VIEWS__DEFAULT_VIEWS=image_view webpage_view text_view recline_view
# Email settings
CKAN_SMTP_SERVER=smtp.corporateict.domain:25

View File

@ -1,7 +1,7 @@
###################
### Extensions ####
###################
FROM ghcr.io/keitaroinc/ckan:2.8.8 as extbuild
FROM ghcr.io/keitaroinc/ckan:2.9.3 as extbuild
# Locations and tags, please use specific tags or revisions
ENV S3FILESTORE_GIT_URL=https://github.com/keitaroinc/ckanext-s3filestore
@ -20,11 +20,11 @@ USER ckan
############
### MAIN ###
############
FROM ghcr.io/keitaroinc/ckan:2.8.8
FROM ghcr.io/keitaroinc/ckan:2.9.3
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
ENV CKAN__PLUGINS envvars s3filestore image_view text_view recline_view datastore datapusher
ENV CKAN__PLUGINS envvars s3filestore image_view webpage_view text_view recline_view datastore datapusher
# Switch to the root user
USER root
@ -34,7 +34,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
# Install and enable the custom extensions
RUN pip install --no-index --find-links=/srv/app/ext_wheels ckanext-s3filestore && \
pip install --no-index --find-links=/srv/app/ext_wheels -r /srv/app/ext_wheels/s3filestore.txt && \
paster --plugin=ckan config-tool "${APP_DIR}/production.ini" "ckan.plugins = ${CKAN__PLUGINS}" && \
ckan config-tool "${APP_DIR}/production.ini" "ckan.plugins = ${CKAN__PLUGINS}" && \
chown -R ckan:ckan /srv/app
# Remove wheels