Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
Use docker-options introduced by dokku 0.3.17
Browse files Browse the repository at this point in the history
Remove dependency to the link plugin
  • Loading branch information
Flink committed Apr 17, 2015
1 parent 4e70f87 commit 77978b4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions commands
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ if [[ $1 == memcached:* ]]; then
APP_EXISTS=false
fi
fi
if [[ ! -d "$PLUGIN_PATH/link" ]]; then
echo "Link plugin not found... Did you install it from https://github.com/rlaneve/dokku-link?"
exit 1
fi

PLUGIN_NAME="memcached"
PLUGIN_ALIAS="memcache"
Expand Down Expand Up @@ -77,7 +73,7 @@ case "$1" in
docker rm $ID > /dev/null
fi

dokku link:delete "$APP" "$CONTAINER_NAME" "$PLUGIN_ALIAS"
dokku docker-options:remove "$APP" "-link $CONTAINER_NAME:$PLUGIN_ALIAS"
dokku config:unset "$APP" MEMCACHE_SCHEME
echo
echo "-----> Deleted Memcached container $CONTAINER_NAME"
Expand Down Expand Up @@ -107,7 +103,7 @@ case "$1" in
ID=$(docker ps -a | grep "$CONTAINER_NAME" | awk '{print $1}')
#IP=$(docker inspect $ID | grep IPAddress | cut -d '"' -f 4)

dokku link:create "$APP" "$CONTAINER_NAME" "$PLUGIN_ALIAS"
dokku docker-options:add "$APP" "-link $CONTAINER_NAME:$PLUGIN_ALIAS"
dokku config:set "$APP" MEMCACHE_SCHEME=""
echo
echo "-----> $APP linked to $CONTAINER_NAME container"
Expand Down

0 comments on commit 77978b4

Please sign in to comment.