Go to file
Francesco Mangiacrapa 6820fc5dde added some comments 2025-03-21 15:13:53 +01:00
ckan-2-6 added some comments 2025-03-21 15:13:53 +01:00
postgresql reverted DB at 5432 port 2025-03-17 16:38:47 +01:00
solr revereted dockerfile 2025-03-06 11:45:17 +01:00
.env fixed the NAMESPACES_GENERIC_RESOURCE_ID. Removed the 2025-03-18 12:05:50 +01:00
.gitignore added conf/nginx-cors.conf 2025-03-13 12:15:24 +01:00
README.md Updated README 2025-03-21 12:18:46 +01:00
docker-compose.yml removed redis dependency 2025-03-21 12:08:13 +01:00
docker-compose_dev.yml Redis is no longer exposed (externally) at 6379 port 2025-03-21 14:49:59 +01:00
istruzioni.txt CKAN at localhost:8080 2025-02-14 12:20:50 +01:00
refs.md first_commit 2025-02-11 00:00:15 +01:00

README.md

CKAN 2.6.X + D4Science Customizations Based on Docker

To Build and Run It

docker compose up --build

URLs

CKAN configurations

To update the CKAN configurations/settings use the .env

The CKAN production.ini file is generated from the Docker .env file using /ckan-2-6/conf/production.ini.template

How to has been created the production.ini from the /ckan-2-6/conf/production.ini.template via Docker:
  • In the/ckan-2-6/conf/Dockerfile has been added:
ARG CKAN_INI_TEMPLATE_FILE=production.ini.template

# Install gettext to use envsubst for creating production.ini from production.ini.template
RUN apt-get install -y gettext

# Copy the production.ini.template in the /etc/ckan/default/production.ini
COPY /conf/$CKAN_INI_TEMPLATE_FILE $CKAN_INI.template

  • In the/ckan-2-6/setup/init_ckan.sh has been added:
# Substitute environment variables in the CKAN template file and output to the CKAN production.ini file
envsubst < /etc/ckan/default/production.ini.template > /etc/ckan/default/production.ini
# delete the CKAN template file
rm /etc/ckan/default/production.ini.template

Local Volumes (docker-compose_dev.yml)

  • CKAN
    • No Volume
  • SOLR
    • ./data/solr:/opt/solr/server/solr/ckan/data
  • PostgreSQL
    • ./data/postgresql:/var/lib/postgresql/data

Local Volumes (docker-compose.yml)

  • CKAN
    • No Volume
  • SOLR
    • /data/solr:/opt/solr/server/solr/ckan/data
  • PostgreSQL
    • /data/postgresql:/var/lib/postgresql/data

Authors