From 93a01fb7637eabeaf445610c907abdaa020469b6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 1 Jan 2015 15:14:47 -0500 Subject: [PATCH] Pass command being executed when retrieving DOCKER_ARGS via pluginhook. Closes #829 --- dokku | 2 +- plugins/00_dokku-standard/commands | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dokku b/dokku index 16fd8dc5a..15ecc8cc7 100755 --- a/dokku +++ b/dokku @@ -81,7 +81,7 @@ case "$1" in fi # start the app - DOCKER_ARGS=$(: | pluginhook docker-args $APP) + DOCKER_ARGS=$(: | pluginhook docker-args $APP deploy) id=$(docker run -d -p 5000 -e PORT=5000 $DOCKER_ARGS $IMAGE /bin/bash -c "/start web") port=$(docker port $id 5000 | sed 's/[0-9.]*://') diff --git a/plugins/00_dokku-standard/commands b/plugins/00_dokku-standard/commands index 2e0cd954f..9233e8a0e 100755 --- a/plugins/00_dokku-standard/commands +++ b/plugins/00_dokku-standard/commands @@ -48,7 +48,7 @@ case "$1" in shift 2 - DOCKER_ARGS=$(: | pluginhook docker-args $APP) + DOCKER_ARGS=$(: | pluginhook docker-args $APP run) docker run -i -t $DOCKER_ARGS $IMAGE /exec "$@" ;;