|
|
||
|---|---|---|
| ckan-2-6 | ||
| postgresql | ||
| solr | ||
| .env | ||
| .gitignore | ||
| README.md | ||
| docker-compose.yml | ||
| docker-compose_ckan_legacy_dev.yml | ||
| docker-compose_ckan_legacy_prod.yml | ||
| docker-compose_default.yml | ||
| docker-compose_development.yml | ||
| istruzioni.txt | ||
| refs.md | ||
| risorse_per_ckan.md | ||
README.md
CKAN 2.6.X + D4Science Customizations Based on Docker
To Build and Run It
docker compose up --build
URLs
- CKAN: http://localhost
- SOLR: http://localhost:8983/
- DB: localhost:5432
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/Dockerfilehas 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.shhas 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
- Francesco Mangiacrapa (ORCID) Computer Scientist at ISTI-CNR Infrascience Group
- Alfredo Oliviero