Merge pull request #927 from progrium/906-mh-docker-args-phase-pluginhooks

support both docker-args PHASE and docker-args-PHASE for the time being. closes #906
This commit is contained in:
Jose Diaz-Gonzalez
2015-02-04 11:13:14 -05:00
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ case "$1" in
shift 2
DOCKER_ARGS=$(: | pluginhook docker-args $APP run)
DOCKER_ARGS+=$(: | pluginhook docker-args-run $APP)
[[ "$(/usr/bin/tty || true)" != "not a tty" ]] && DOKKU_RUN_OPTS="-i -t"
docker run $DOKKU_RUN_OPTS $DOCKER_ARGS $IMAGE /exec "$@"