You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess I'll use command() for now and do a raw list of strings. It might be nice if there was some way to still leverage the executor.
executor.command(executor.docker.run(compose_image, volume=[], env={}, workdir='...')._cmd + ['--help']) is a convenient escape hatch that involves less manual intervention than doing the whole thing from scratch; not sure if this is overall a good API or not
The text was updated successfully, but these errors were encountered:
A cleaner version of that API that might work well:
executor.docker.run(...).extend(['--help'])
Add extend() to _PreparedCommand which just takes a list of strings and adds it to the end. Maybe in general _PreparedCommand could have some list-like methods? (Item assignment, insert, pop?)
kurtbrose
changed the title
docker run, arguments for "inner" process -- maybe make _PreparedCommand._cmd a public API?
list-like methods for seashore.executor._PreparedCommand?
Jun 20, 2017
Specifically I'm trying to do docker-compose-in-docker:
I guess I'll use
command()
for now and do a raw list of strings. It might be nice if there was some way to still leverage the executor.executor.command(executor.docker.run(compose_image, volume=[], env={}, workdir='...')._cmd + ['--help'])
is a convenient escape hatch that involves less manual intervention than doing the whole thing from scratch; not sure if this is overall a good API or notThe text was updated successfully, but these errors were encountered: