Docker wrapper error

Answered

Moving my Command Line scripts to run inside Docker container.  Switched to Docker runner, and selected the Other radio button, pasted my docker command inside the "Docker command parameter" box.  The "Command name" is "run".  But execution fails on the syntax.  How do I properly use the Docker Wrapper?  Here is the command parameters and the error:

--rm --privileged --volume /home/teamcity/work/2719ecb5fa2bb89d:/home/deltagen cuda-dev:16.04 /bin/bash -c "./make_slim_delta_image.sh 1011 3.0.1.0.0.bafb899 2.4.2.7.0.a1e8c87 yes no"

1011: -c: line 0: unexpected EOF while looking for matching `"'

0
2 comments

The Docker Runner is for sub-commands, like push or tag. To run your Command-Line script in a Docker container, simply configure your Command-Line Runner to run within a Docker Wrapper. This is done by specifying the image name in the Docker Settings fields for the Command-Line Runner. '--rm' is automatically added by default, but you can also add additional arguments as needed.

Here is some documentation covering the Docker Wrapper: https://www.jetbrains.com/help/teamcity/2020.1/docker-wrapper.html

0
Avatar
Permanently deleted user

Thanks, Eric, that was the trick.  I was also able to remove the extra volume switch since the wrapper already sets the workdir.

0

Please sign in to leave a comment.