Mercurial > public > ssdt-docker
diff scripts/console.sh @ 90:63cb9be89a26 production v1.0.0
flow: Merged <release> 'v1.0.0' to <master> ('production').
author | smith@nwoca.org |
---|---|
date | Thu, 22 Sep 2016 01:49:20 +0100 |
parents | 541766977a11 |
children | 8f45c43ea7a4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/console.sh Thu Sep 22 01:49:20 2016 +0100 @@ -0,0 +1,11 @@ +#!/bin/bash + +# connects to the telnet console of the application for the specified service of the current project +source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh" + +container=$(composeGetContainer ${1?"Must specify the app service of the console to connect to"} ) + +ip=$(docker inspect -f '{{.NetworkSettings.IPAddress}}' $container) + +docker run -it -v ${PWD}:/tmp -v /ssdt:/ssdt --rm docker.ssdt.io/ssdt-utils telnet $ip 2000 | tee console.log +