Skip to content

The corresponding pipeline code for tmf-implementation

License

Notifications You must be signed in to change notification settings

quantifyearth/tmf-pipeline

Repository files navigation

Tropical Moist Forest Evaluation Methodology Pipeline

This pipeline provides infrastructure for running the tropical moist forest evalulation methodology implementation which itself implements the open-source, ecological methodology.

A snapshot of a section of the TMF evaluations methodology pipeline

Implementation

This pipeline is written using OCurrent, an eDSL in OCaml for building dynamic dataflow programs. We use OBuilder to build and run the various scripts from the methodology implementation. The actual wiring up and plumbing is all contained within the evaluate function.

Prerequisites for running

You will also need to setup a snapshotting filesystem for OBuilder to store build results. One possible backend is ZFS. A quick but probably not very efficient way to get one setup is with the following using truncate:

sudo apt install zfsutils-linux
truncate --size XG zfs.img
sudo zpool create obuilder-zfs $PWD/zfs.img

You can then run the pipeline with something like:

CURRENT_DIR_PREFIX=/some/dir/path dune exec -- ./src/pipeline/bin/main.exe \
    --slack .slack \
    --project-ids 1201,3141,1396,944
    --store=zfs:obuilder-zfs \
    --capnp-secret-key-file=secret-key.pem \
    --capnp-listen-address=unix:/tmp/ocurrent.sock \
    --port=8001

Debugging and Inspecting

The pipeline can be interfaced via the command line, and you can checkout a specific build. Hoke is a tool for accessing a shell for a specific build within the pipeline. This is ephemeral and will be cleaned up when you exit, but it can be a quick way to get something running quickly with all the data you need.

hoke shell --connect=./secrets/submission.cap --id=<hash>

About

The corresponding pipeline code for tmf-implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages