forked from Yelp/paasta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The command the container is supposed to run is being passed to pipes.quote() once in get_docker_run_cmd() and once again in run_docker_container(). If the string contains anything that pipes.quote thinks should be quoted then we end up with some very weird results. For example "echo 'Hello' && sleep 60" turns to "echo foo '"'"'&&'"'"' sleep 60". This gets weirder when the command passed to us is already in the form '''/bin/sh -c '/bin/echo "docker docker docker"' ''' because then we prepend /bin/sh in front of it and quoting gets *very* ugly.
- Loading branch information
Kyriakos Oikonomakos
committed
Jun 15, 2016
1 parent
1beac8a
commit b9ef45f
Showing
6 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ dist/ | |
.pip/ | ||
*.py? | ||
.*.sw? | ||
.idea | ||
paasta_tools.egg-info/ | ||
docs/man/ | ||
tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters