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

Use docker-options introduced by dokku 0.3.17 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" deploy,run "--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" deploy,run "--link $CONTAINER_NAME:$PLUGIN_ALIAS"
dokku config:set "$APP" MEMCACHE_SCHEME=""
echo
echo "-----> $APP linked to $CONTAINER_NAME container"
Expand Down