Skip to content

list-like methods for seashore.executor._PreparedCommand? #35

Description

@kurtbrose

Specifically I'm trying to do docker-compose-in-docker:

    docker run -v "$(pwd)":"$(pwd)" \
             -v /var/run/docker.sock:/var/run/docker.sock \
             -e COMPOSE_PROJECT_NAME=$(basename "$(pwd)") \
             --workdir="$(pwd)" \
             -ti --rm \
             dduportal/docker-compose:latest --help

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions