In the previous sections of this tutorial, we ran all our jobs inside the directory example-project using either the fedora-sc stack or the fedora:latest image. In a more general setting it is possible to dynamically set either of these two settings using flags.
To start a job that runs in the stack STACK
using the files in the project directory PROJECT
, use the command
$ cjr job:start --stack=STACK --project-root=PROJECT command arg1 arg2 ...
The stack flag allows you to easily run jobs with stacks other than the default stack in a project directory.
The project-root flag is more general and allows you to start jobs in directories where you have not initialized a cjr project using cjr init
.