# HG changeset patch # User smith@nwoca.org # Date 1505163697 -3600 # Node ID 5c4e8cc8d75d79446e46746c442d7430f0fe7c19 # Parent f18dcd16595ac935a4cd703ab41a4d65f669c365# Parent ae2b4a5294ffd114cea50d632aaf0ca2723ee2e4 flow: Promoted 'v1.2.2' (ae2b4a5294ff) to 'default'. diff -r f18dcd16595a -r 5c4e8cc8d75d .hgtags --- a/.hgtags Tue Sep 05 20:55:32 2017 +0100 +++ b/.hgtags Mon Sep 11 22:01:37 2017 +0100 @@ -2,3 +2,4 @@ 60bb94387b7dfc56227da60f4b530c4e30a4a985 v1.1.0 73c0c04a44eb08462f9f94f4256fdf905f339f85 v1.1.1 daf91a3bbee56ebe7d293a72c9e8732ac1bce724 v1.2.0 +577d9750fe01f3fad68bffd1908612abe87d794d v1.2.1 diff -r f18dcd16595a -r 5c4e8cc8d75d scripts/console.sh --- a/scripts/console.sh Tue Sep 05 20:55:32 2017 +0100 +++ b/scripts/console.sh Mon Sep 11 22:01:37 2017 +0100 @@ -3,7 +3,7 @@ # For docker 1.12 and compose 1.9 (and higher) assume project is assigned to a network # named "${project}_default" per SSDT templates. -source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh" +source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" container=$(composeGetContainer ${1?"Must specify the app service of the console to connect to"} ) @@ -11,13 +11,15 @@ if [ "$ip" == "" ] then - ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container) project=$(composeGetProject ${1} ) + ip=$(docker inspect -f "{{with .NetworkSettings.Networks}}{{.${project}_default.IPAddress}}{{end}}" $container) fi if [ "$project" == "" ] then docker run -it -v ${PWD}:/tmp -v ${SSDT_HOME}:/ssdt --rm docker.ssdt.io/ssdt-utils telnet $ip 2000 | tee console.log else + echo "connecting to telnet console on ${container} in ${project}" docker run -it --network ${project}_default --rm docker.ssdt.io/ssdt-utils telnet $ip 2000 | tee console.log fi +