factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

Initial implementation of new command `docker-compose` #117

Closed stmh closed 3 years ago

stmh commented 3 years ago

Here's the initial implementation of the docker-compose command. Documentation is missing and we might need to handle errors a little better.

mikran commented 3 years ago

Interactive shell is not working, Executing commands with phab -cmbb -vvv docker-compose -- exec web ls gives

the input device is not a TTY

stmh commented 3 years ago

Then we should use a similar approach as drush is using. Basically we pass the request to the methods so they can react to it -- the methods will return the command line to execute which will then be executed by the command with an interactive shell.

stmh commented 3 years ago

I reworked the implementation to use an interactive shell to run docker-compose. unfortunately not so easy. But I could refactor drush and drupal-console using the same code, yay.