CHANGED use namespace dokku for docker 0.10 compatibility

This commit is contained in:
Assaf Arkin
2014-04-09 13:06:52 -07:00
parent 6d82792508
commit 2474844856
3 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ case "$1" in
echo "Please specify an app to delete"
exit 1
fi
APP="$2"; IMAGE="app/$APP";
APP="$2"; IMAGE="dokku/$APP";
if [[ ! -d "$DOKKU_ROOT/$APP" ]]; then
echo "App does not exist"
exit 1
@@ -53,7 +53,7 @@ case "$1" in
echo "Please specify an app to run the command on"
exit 1
fi
APP="$2"; IMAGE="app/$APP"
APP="$2"; IMAGE="dokku/$APP"
if [[ ! -d "$DOKKU_ROOT/$APP" ]]; then
echo "App $APP does not exist"
exit 1

View File

@@ -2,7 +2,7 @@
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
APP="$1"
IMAGE=app/"$1"
IMAGE=dokku/"$1"
CACHE_DIR="$DOKKU_ROOT/$APP/cache"
docker run -v $CACHE_DIR:/cache $IMAGE find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \;