DotCi icon indicating copy to clipboard operation
DotCi copied to clipboard

In docker builds, dotci has trouble running .ci.yml with "quotation marks" in the command

Open michaelstandley opened this issue 11 years ago • 0 comments

Right now dotci invokes commands listed in .ci.yml with something like:

docker run foo sh -cx "commands from .ci.yml"

If one of your .ci.yml commands has a quotation mark in it, it will prematurely terminate the string being passed to sh and it won't run the rest of the commands in the .ci.yml. My suggestion would be to assemble the script to be run and then mount it in at runtime with something like this:

dotci produces /tmp/dotci_script.sh, then executes it with something like:

docker run -v /tmp/dotci_script.sh:/dotci_script.sh:ro centos:centos6 bash /dotci_script.sh

michaelstandley avatar Nov 17 '14 22:11 michaelstandley