Last active
January 26, 2018 08:21
Revisions
-
daimor revised this gist
Jan 26, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ then exit 1 fi INSTANCE=`docker container inspect $CONTAINER -f '{{range .Config.Env }}{{println .}}{{end}}' | grep 'ISC_PACKAGE_INSTANCENAME' | cut -d'=' -f2` echo "Container $CONTAINER" echo "Instance $INSTANCE" -
daimor created this gist
Jan 25, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #!/bin/bash NAME=$1 CONTAINER=`docker container ls -q -f "name=$NAME"` if [ -z $CONTAINER ] then echo "Docker container with name $NAME not found" exit 1 fi INSTANCE=`docker container inspect $CONTAINER -f '{{range .Config.Env }}{{println .}}{{end}}' | grep -oP '^ISC_PACKAGE_INSTANCENAME=\K(.*)'` echo "Container $CONTAINER" echo "Instance $INSTANCE" if [ -z $INSTANCE ] then echo "Cache instance in container with name $NAME not found" exit 1 fi docker exec -it $CONTAINER csession $INSTANCE ${@:2}