diff --git a/bin/dev_command/run b/bin/dev_command/run new file mode 100644 index 0000000..8086c0c --- /dev/null +++ b/bin/dev_command/run @@ -0,0 +1,12 @@ + + +dc mode run; +dc service $1; + +if [ -n "${DEV_PROJECTDIR}" ]; then + dc opt "-w /data/${DEV_PROJECTDIR}" +fi + +shift; +dc cmd "$*"; + diff --git a/docs/development-commands.md b/docs/development-commands.md index 3c03725..667bbb4 100644 --- a/docs/development-commands.md +++ b/docs/development-commands.md @@ -28,6 +28,8 @@ To control your docker environment. alias for `dev update && dev build && dev down && dev up` - `restart [CONTAINER]` restart all or a specific container +- `run` + run one-off commands in new container - `setup` Run setup for defaults - `start`