Simple command for running shell commands in a docker container started by docker-compose.
Run gem install dce
. If you only want to install it for your own user, use the --user-install
flag.
Usage: dce [OPTIONS]... COMMAND
Runs COMMAND in docker-compose container.
On first run, asks for the service container to use and saves it to .dce_container next
to the docker-compose.yml file.
If no command given, opens a shell.
Options:
-c, --container SERVICE use the container of the specified service
replaces the selected container in the .dce_container
-v, --verbose print exec'ed command
-n, --dry-run only print exec'ed command, don't run
-?, --print-service print the service saved
-h, --help print this help and exit
- Add
.dce_container
to$HOME/.gitexcludes
. alias dc=docker-compose
alias dcd="dce drush"
DCE currently require the container to have /bin/sh
.