A dashboard for visualizing events.
-
To recompile this workflow after having made changes to
spec.yaml, first installwt-compilerif you do not have it installed already:Note: The
--run-post-link-scriptsflag is necessary because, in order to generate a visual representation of the workflow DAG, thewt-compiler compilecommand depends on thedotexecutable having been initialized post-install via thedot -ccommand. Setting the--run-post-link-scriptsflag triggers this initialization automatically. Setting this flag does imply allowing the package manager to run (potentially insecure) arbitrary scripts. If you prefer to omit this flag, then after you have installedwt-compiler, you may separately run$HOME/.pixi/envs/wt-compiler/bin/dot -cto initializedot.$ pixi global install \ -c https://prefix.dev/ecoscope-workflows \ -c conda-forge \ wt-compiler \ --run-post-link-scripts
-
Update pixi:
Note: We want to update pixi to the latest stable version locally before recompiling, because in the next step we will use the output of
pixi --versionto set the version of pixi used in the generatedDockerfile. Because pixi is a very fast-moving project, with performance improvements and bugfixes being released regularly, we want the version used here to be the latest stable version.pixi self-update -
Then from the repo root, run:
Note: Running
wt-compiler compilewill import all tasks from requirements defined in thespec.yaml'srequirements:section into an ephemeral environment on your machine. Please ensure that you trust the contents of these requirements before running the following command.$ PIXI_VERSION="v$(pixi --version | awk '{print $2}')" \ wt-compiler compile \ --spec=spec.yaml \ --pkg-name-prefix=ecoscope-workflows \ --results-env-var=ECOSCOPE_WORKFLOWS_RESULTS \ --variant=gcp \ --update \ --clobber