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? |
Answered by
sebastianfeldmann
Apr 12, 2024
Replies: 1 comment 1 reply
|
Both settings work. |
1 reply
Answer selected by
noteven
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.