Skip to content

aptivate/mapaction-docker

Repository files navigation

Build Status

mapaction-docker

A docker managed Map Action deployment.

Please see the Redmine project page for more details.

Get Started

Get a local copy with:

$ git clone git@github.com:aptivate/mapaction-docker.git

Grab the various plugin code with:

$ ./cloner

Bring up the deployment with:

$ docker-compose build
$ docker-compose up -d

The CKAN application should eventually come up up at http://localhost:5000/.

Bootstrap Test Data

You'll need to hit the following URLs and create some test data:

Create Administrator Account

Create Organisation

Create Event

Create Tag Vocabularies

Import Data Set

Working With CKAN

In order to connect to the CKAN container, run:

$ docker exec -it ckan bash

For example, let's run a search index rebuild:

$ ckan-paster --plugin=ckan search-index rebuild

If you update any deployment configuration, you'll typically want to rebuild the CKAN container. Ideally, you won't bring down the entire cluster. To do that, run the following:

$ docker rm -f ckan && docker-compose up -d --no-deps --build ckan

Working With The Plugins

All plugins are mounted into the container from the ./plugins directory, installed in the ckan virtual environment (with the --editable flag) and any file edits on the host machine will result in the paster server live reloading. Happy Hacking.

You can run the tests by doing the following (inside the CKAN container):

$ source $CKAN_HOME/bin/activate
$ cd $CKAN_HOME/src/plugins/<your-plugin>
$ nosetests --with-pylons=$CKAN_TEST_INI --nologcapture -x

About

A docker managed Map Action deployment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published