Captainhook and Docker documentation #246
-
Currently using CaptainHook with docker and the following config (nesting of {
"config": {
"fail-on-first-error": false,
"run": {
"mode": "docker",
"exec": "docker run -i -v ${PWD}:/captainhook -w /captainhook api_dev:latest"
}
}
} But I notice the CaptainHook {
"config": {
"run-mode": "docker",
"run-exec": "docker run -i -v ${PWD}:/captainhook -w /captainhook api_dev:latest"
}
} Are the two equivalent? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Both settings work. |
Beta Was this translation helpful? Give feedback.
Both settings work.
The nested one is the currently preferred one but the prefixed
run-*
settings are still supported and get converted internally.Possible that in a future major version I will remove the automatic conversion so updating your settings to the nested version is the right way.