Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eccenca/ckan-docker


https://github.com/eccenca/ckan-docker

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# 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 = [-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)