Local datapackage execution

Prerequisites

  • A working Docker installation

Build execution Docker image

Clone the opendatafit/execution-base repository and build the execution Docker image.

git clone https://github.com/opendatafit/execution-base.git
cd execution-base
./build_dockerfile.sh

Prepare input datapackage

Prepare an input datapackage file (input.json) containing the datapackage to be executed and populate any initial data and parameters required by the algorithm.

Examples

Set up local execution tool and run

Clone the opendatafit/dev-utils repository and cd into the local execution tool directory.

git clone https://github.com/opendatafit/dev-utils.git
cd dev-utils/local_exec

Copy your input.json datapackage file into the ./input-data/ directory at the root of the local_exec directory.

mkdir input-data
cp /path/to/input.json ./input-data/

Finally, execute the datapackage!

./run_local.sh

Last updated