comparison scripts/console.sh @ 74:541766977a11

add script to connect to telnet console of usxsapp
author smith@nwoca.org
date Wed, 23 Mar 2016 16:37:35 +0100
parents scripts/import-usas.sh@d2c44193fbaa
children 8f45c43ea7a4
comparison
equal deleted inserted replaced
73:d2c44193fbaa 74:541766977a11
1 #!/bin/bash
2
3 # connects to the telnet console of the application for the specified service of the current project
4 source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh"
5
6 container=$(composeGetContainer ${1?"Must specify the app service of the console to connect to"} )
7
8 ip=$(docker inspect -f '{{.NetworkSettings.IPAddress}}' $container)
9
10 docker run -it -v ${PWD}:/tmp -v /ssdt:/ssdt --rm docker.ssdt.io/ssdt-utils telnet $ip 2000 | tee console.log
11