Public | Automated Build

Last pushed: 9 months ago
Short Description
populate ckan database with demo data for trainings.
Full Description

Script for setting up demo country (Foolandia), orgs, and users for training on HDX.

Currently the script needs to run from python 3.x to avoid SSL errors. On 2017-05-23, the script was run against DEMO and produced a 500 error on creating the group and the organization however, the group appears to have been created. All users were created normally.

Configuration of users, orgs, and locations is in the config.json file.

Requires 3 environment variables to be set:
HDX_URL (hdx instance to point to, normally
HDX_KEY (an hdx sysadmin user's api key)
HDX_AGENT (a user agent string that we use for usage tracking)

Docker way to run it without polluting your system:

  1. docker pull unocha/hdx-demo-lition:latest

  2. docker run --rm -it -e HDX_URL="http://your.url" -e HDX_KEY="YOUR_KEY" -e HDX_AGENT="YOUR_AGENT" unocha/hdx-demo-lition:latest

  3. (demolition script is running)

  4. Done!

Docker Pull Command
Source Repository