Common DKCloudCommand Sequences¶
Common command sequences are shown below. Note that references to specific kitchens, recipes, variations, and file paths are omitted here for clarity of command sequencing.
Local to remote updates¶
For a single file¶
- Make a local change to a single recipe file, then view its status.
- View local-to-remote file differences with a local tool.
- Compile the file.
- Update changes to the remote file copy.
- Confirm that the remote changes have been applied.
[LOCAL CHANGE]
~ $ dk recipe-status
~ $ dk file-diff
~ $ dk file-compile
~ $ dk file update --message "Change message"
~ $ dk recipe-status
For multiple files¶
- Make local changes to multiple recipe files.
- View local-to-remote file differences.
- Compile the entire recipe.
- Validate the entire recipe.
- Batch update all recipe files to remote.
- Confirm that the remote changes have been applied.
[LOCAL CHANGE]
[LOCAL CHANGE]
~ $ dk recipe-status
~ $ dk file-diff
~ $ dk file-diff
~ $ dk recipe-compile
~ $ dk recipe-validate
~ $ dk recipe-update
~ $ dk recipe-status
Kitchen merges¶
Merge kitchens and resolve multiple file conflicts.
PARENT-TO-CHILD
~ $ dk kitchen-merge-preview --clean_previous_run
~ $ dk file-merge
~ $ dk file-resolve
~ $ dk kitchen-merge-preview
~ $ dk file-merge
~ $ dk file-resolve
~ $ dk kitchen-merge-preview
~ $ dk kitchen-merge --yes
CHILD-TO-PARENT
~ $ dk kitchen-merge-preview --clean_previous_run
~ $ dk file-merge
~ $ dk file-resolve
~ $ dk kitchen-merge-preview
~ $ dk file-merge
~ $ dk file-resolve
~ $ dk kitchen-merge-preview
~ $ dk kitchen-merge --yes
Run orders¶
- Prepare an order run by first verifying that local and remote recipe copies are equivalent.
- View the recipe's variations.
- Validate the recipe.
- Run the order.
- Monitor ongoing logs and test results.
- Stop the order run.
- Resume the order run.
- Watch all active order runs in a kitchen.
- View the order run information summary.
- Copy the order run metadata to a repository kitchen to provide test and timing benchmarking for future order runs.
~ $ dk recipe-status
~ $ dk recipe-variation-list
~ $ dk recipe-validate
~ $ dk order-run
~ $ dk dk orderrun-info --log
~ $ dk dk orderrun-info --test
~ $ dk orderrun-stop --yes
~ $ dk orderrun-resume --yes
~ $ dk dk active-serving-watcher
~ $ dk dk orderrun-info --summary
~ $ dk dk orderrun-copy
Set and activate schedules by command line¶
- Use the command line to access a recipe's
variations.jsonfile. - In the
schedule-setting-listobject (formerly mesos-setting-list), add scheduling key-value pairs for each schedule.- See Schedule Settings for field definitions.
- See Cron Expression Basics for help with advanced scheduling statements.
- See Annotations for more information on the Annotations field.
- In the
variation-listobject, add the schedule names to the appropriate variations in your recipe. - Save the file.
- To activate the schedule, run an order for the variation with an added parameter for the schedule name.
Troubleshooting: CLI Issues