ckan 2.10 dockerfile update and scripts along with docker compose setup
This commit is contained in:
parent
0231df73f8
commit
1bea0e7e6c
|
@ -7,8 +7,8 @@ MAINTENANCE_MODE=false
|
||||||
|
|
||||||
# General Settings
|
# General Settings
|
||||||
CKAN_SITE_ID=default
|
CKAN_SITE_ID=default
|
||||||
CKAN_SITE_URL=http://localhost:5005
|
CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5005
|
CKAN_PORT=5000
|
||||||
CKAN_MAX_UPLOAD_SIZE_MB=20
|
CKAN_MAX_UPLOAD_SIZE_MB=20
|
||||||
CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
|
CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
|
||||||
# See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings
|
# See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings
|
||||||
|
@ -38,5 +38,5 @@ CKAN__DATAPUSHER__API_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJ6M0l
|
||||||
# CKAN__DATAPUSHER__API_TOKEN=replace_this_with_api_token_once_ckan_starts
|
# CKAN__DATAPUSHER__API_TOKEN=replace_this_with_api_token_once_ckan_starts
|
||||||
|
|
||||||
# Solr configuration
|
# Solr configuration
|
||||||
CKAN_VERSION=2.9.7
|
CKAN_VERSION=2.10
|
||||||
CKAN_CORE_NAME=ckan
|
CKAN_CORE_NAME=ckan
|
|
@ -12,10 +12,10 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.7
|
CKAN_VERSION=2.10
|
||||||
CKAN_SITE_ID=default
|
CKAN_SITE_ID=default
|
||||||
CKAN_SITE_URL=http://localhost:5005
|
CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5005
|
CKAN_PORT=5000
|
||||||
CKAN_MAX_UPLOAD_SIZE_MB=10
|
CKAN_MAX_UPLOAD_SIZE_MB=10
|
||||||
|
|
||||||
# Datapusher
|
# Datapusher
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# docker-compose build && docker-compose up -d
|
# docker-compose build && docker-compose up -d
|
||||||
version: "3"
|
version: "3.8"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ckan_data:
|
ckan_data:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
CKAN_SOLR_SCHEMA_URL=https://raw.githubusercontent.com/ckan/ckan/ckan-$CKAN_VERSION/ckan/config/solr/schema.solr8.xml
|
CKAN_SOLR_SCHEMA_URL=https://raw.githubusercontent.com/ckan/ckan/$CKAN_VERSION/ckan/config/solr/schema.xml
|
||||||
|
|
||||||
echo "Check whether managed schema exists for CKAN $CKAN_VERSION"
|
echo "Check whether managed schema exists for CKAN $CKAN_VERSION"
|
||||||
if ! curl --output /dev/null --silent --head --fail "$CKAN_SOLR_SCHEMA_URL"; then
|
if ! curl --output /dev/null --silent --head --fail "$CKAN_SOLR_SCHEMA_URL"; then
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
FROM alpine:3.17.2 as ckanbuild
|
FROM alpine:3.17.2 as ckanbuild
|
||||||
|
|
||||||
# Used by Github Actions to tag the image with
|
# Used by Github Actions to tag the image with
|
||||||
ENV IMAGE_TAG=2.10.0
|
ENV IMAGE_TAG=2.10.2
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.10.0
|
ENV GIT_BRANCH=ckan-2.10.2
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
@ -57,7 +57,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
# RUN ${SRC_DIR}/apply_ckan_patches.sh
|
# RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.12.0 greenlet==1.1.3
|
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==22.10.2 greenlet==2.0.2
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -136,7 +136,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.12.0
|
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==22.10.2
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN addgroup -g 92 -S ckan && \
|
RUN addgroup -g 92 -S ckan && \
|
||||||
|
|
|
@ -8,7 +8,7 @@ ENV IMAGE_TAG=2.9.7-focal
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.9.7
|
ENV GIT_BRANCH=ckan-2.10.2
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
@ -81,8 +81,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.12.0 greenlet==1.1.3
|
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==22.10.2 greenlet==2.0.2
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
### Default-Extensions ####
|
### Default-Extensions ####
|
||||||
|
@ -192,7 +191,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.12.0
|
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==22.10.2
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN groupadd -g 92 ckan && \
|
RUN groupadd -g 92 ckan && \
|
||||||
|
|
Loading…
Reference in New Issue