Closed snthpr1d3 closed 3 years ago
Hi! I'll see about this bug this week.
I'm sorry for the misinformation, it turned out that behaviour does not depend on OS, it depends on the actual version of the gem. I got 6.1.0 on MacOS, and 7.1.0 on the linux environment. Tried out 7.1.0 on MacOS and got the same issue, then tried out 6.1.0 on linux and it worked.
@snthpr1d3 please try the new version
It works, thank you!
First of all, thank you for the really great, useful and handy tool. I apologize in advance for possible grammar mistakes. Also, I assume I might misunderstand the actual reason of the issue.
Describe the bug It's impossible to use a container application with arguments on Ubuntu and therefore it's impossible to use advanced shell constructions.
To Reproduce Steps to reproduce the behavior:
/tmp/test_project
dip.yml
config file in the folder:compose: files:
docker-compose.yml
interaction: bash: service: test command: /bin/sh
provision:
services: test: image: alpine command: tail -f /dev/null
sh: -c: line 1: syntax error near unexpected token
then' sh: -c: line 1:
docker-compose --file /home/snthpr1d3/work/dip_bug/docker-compose.yml run --rm test /bin/sh -c if [[ true ]]; then echo works; fi' ERROR: Command 'dip bash -c 'if [[ true ]]; then echo works; fi'' executed with error