Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose support #25

Open
kurtbrose opened this issue Jun 12, 2017 · 5 comments
Open

docker-compose support #25

kurtbrose opened this issue Jun 12, 2017 · 5 comments

Comments

@kurtbrose
Copy link
Contributor

No description provided.

@kurtbrose
Copy link
Contributor Author

I see Executor(['docker-compose']) works for me

@kurtbrose kurtbrose changed the title docker-compose support and/or docs for how to add command to executor docker-compose support Jun 12, 2017
@kurtbrose
Copy link
Contributor Author

>>> seashore.Executor(s, commands=['docker-compose']).docker_compose
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kurtrose/sky/build/src/seashore/src/seashore/executor.py", line 187, in __getattr__
    raise AttributeError(name)
AttributeError: docker_compose

@kurtbrose
Copy link
Contributor Author

I think __getattr__ needs to take into account - / _ transformations?

@kurtbrose
Copy link
Contributor Author

>>> seashore.Executor(seashore.Shell(), commands=['docker_compose']).docker_compose().interactive()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kurtrose/sky/build/src/seashore/src/seashore/executor.py", line 150, in __call__
    return self._executor.prepare(self._name, *args, **kwargs)
TypeError: prepare() takes at least 3 arguments (2 given)

@kurtbrose
Copy link
Contributor Author

okay, I see how to do it:

>>> e = seashore.Executor(seashore.Shell(), commands=['docker_compose']).docker_compose
>>> e.docker_compose.version().interactive()
docker-compose version 1.11.2, build dfed245
docker-py version: 2.1.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

I guess the only issue is docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant