Giter VIP home page Giter VIP logo

ckan-docker's Introduction

Docker containers for the CKAN data catalog.

Updated for the latest (v 2.7) ckan version.

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)

ckan-docker's People

Contributors

hknochi avatar jmbarrios avatar rpietzsch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.