updating s3filestore example to use CKAN 2.9 (#52)
This commit is contained in:
parent
a9090c9793
commit
fa62c30b11
|
@ -8,7 +8,7 @@ CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5000
|
CKAN_PORT=5000
|
||||||
CKAN_MAX_UPLOAD_SIZE_MB=10
|
CKAN_MAX_UPLOAD_SIZE_MB=10
|
||||||
# CKAN Plugins
|
# 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 requires storage path to be set in order for filestore to be enabled
|
||||||
CKAN__STORAGE_PATH=/srv/app/data
|
CKAN__STORAGE_PATH=/srv/app/data
|
||||||
CKAN__WEBASSETS__PATH=/srv/app/data/webassets
|
CKAN__WEBASSETS__PATH=/srv/app/data/webassets
|
||||||
|
@ -16,6 +16,7 @@ CKAN__WEBASSETS__PATH=/srv/app/data/webassets
|
||||||
CKAN_SYSADMIN_NAME=sysadmin
|
CKAN_SYSADMIN_NAME=sysadmin
|
||||||
CKAN_SYSADMIN_PASSWORD=password
|
CKAN_SYSADMIN_PASSWORD=password
|
||||||
CKAN_SYSADMIN_EMAIL=sysadmin@ckantest.com
|
CKAN_SYSADMIN_EMAIL=sysadmin@ckantest.com
|
||||||
|
CKAN__VIEWS__DEFAULT_VIEWS=image_view webpage_view text_view recline_view
|
||||||
|
|
||||||
# Email settings
|
# Email settings
|
||||||
CKAN_SMTP_SERVER=smtp.corporateict.domain:25
|
CKAN_SMTP_SERVER=smtp.corporateict.domain:25
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
###################
|
###################
|
||||||
### Extensions ####
|
### 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
|
# Locations and tags, please use specific tags or revisions
|
||||||
ENV S3FILESTORE_GIT_URL=https://github.com/keitaroinc/ckanext-s3filestore
|
ENV S3FILESTORE_GIT_URL=https://github.com/keitaroinc/ckanext-s3filestore
|
||||||
|
@ -20,11 +20,11 @@ USER ckan
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.8.8
|
FROM ghcr.io/keitaroinc/ckan:2.9.3
|
||||||
|
|
||||||
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
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
|
# Switch to the root user
|
||||||
USER root
|
USER root
|
||||||
|
@ -34,7 +34,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
# Install and enable the custom extensions
|
# Install and enable the custom extensions
|
||||||
RUN pip install --no-index --find-links=/srv/app/ext_wheels ckanext-s3filestore && \
|
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 && \
|
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
|
chown -R ckan:ckan /srv/app
|
||||||
|
|
||||||
# Remove wheels
|
# Remove wheels
|
||||||
|
|
Loading…
Reference in New Issue