Public | Automated Build

Last pushed: a month ago
Short Description
Short description is empty for this repo.
Full Description

installation /build-process

eccenca/baseimage-docker

git clone https://github.com/eccenca/baseimage-docker.git
cd baseimage-docker/image
docker build -t eccenca/baseimage:latest .

eccenca/ckan

git clone --recursive https://github.com/eccenca/ckan-docker.git
cd ckan-docker
docker build -t eccenca/ckan:latest .

eccenca/ckan-solr

cd ckan-docker/contrib/docker/solr
docker build -t eccenca/ckan-solr:latest .

eccenca/ckan-postgresql

cd ckan-docker/contrib/docker/postgresql
docker build -t eccenca/ckan-postgresql:latest .

run ckan

solr

docker run -d --name ckan_solr eccenca/ckan-solr:latest

postgresql

docker run -d --name ckan_db eccenca/ckan-postgresql:latest

ckan

docker run -it --rm --link ckan_solr:solr --link ckan_db:db -p 80:80  --name ckan_ckan eccenca/ckan:latest /bin/bash

within the container:

/sbin/my_init

or with

docker run -it --rm --link ckan_solr:solr --link ckan_db:db -p 80:80  --name ckan_ckan eccenca/ckan:latest

ckan configuration

The ckan.ini configuration file is created during container start. The following configuration parameter can be set on docker run using the -e <VARIABLE_NAME>=<VALUE> [-e ...]:

  • General settings
    • CKAN_SITE_URL (default: http://localhost)
    • CKAN_DEBUG (False)
    • CKAN_PLUGINS - add additional plugins (unset)
    • DB_FT_SEARCH_LANG (english)
  • Internationalisation Settings
    • CKAN_LOCALE (en)
  • Feeds Settings
    • CKAN_FEED_AUTHORITY(unset)
    • CKAN_FEED_DATE(unset)
    • CKAN_FEED_AUTHOR (unset)
    • CKAN_FEED_AUTHOR_LINK (unset)
  • storage settings
    • CKAN_STORAGE_PATH (/var/lib/ckan)
  • activity stream
    • CKAN_ACTIVITY_STREAM_ENABLED (True)
  • Email settings
    • EMAIL_TO (ckan-admin@localhost)
    • EMAIL_FROM (ckan_instance@localhost)
    • EMAIL_SMTP_SERVER (smtp.localhost)
    • EMAIL_SMTP_STARTTLS (True)
    • EMAIL_SMTP_USER (EXAMPLEUSER)
    • EMAIL_SMTP_PASS (EXAMPLEPASS)
    • EMAIL_SMTP_EMAIL_FROM (ckan_instance@localhost)
Docker Pull Command
Owner
eccenca
Source Repository

Comments (2)
nileband
a year ago

The run commands above need to be updated:
docker run -it --rm --link (...) eccenca/ckan-docker:latest.
Otherwise, an error will be thrown:
Unable to find image 'eccenca/ckan:latest' locally
Pulling repository docker.io/eccenca/ckan
docker: Error: image eccenca/ckan not found.

metanomy
2 years ago

eccenca/ckan-solr: requires version change to 4.10.4 in Dockerfile to compile.