Mercurial > public > ssdt-docker
annotate scripts/console.sh @ 140:73c0c04a44eb production v1.1.1
flow: Merged <hotfix> 'v1.1.1' to <master> ('production').
author | smith@nwoca.org |
---|---|
date | Fri, 16 Jun 2017 17:14:15 +0100 |
parents | 541766977a11 |
children | 8f45c43ea7a4 |
rev | line source |
---|---|
44
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
1 #!/bin/bash |
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
2 |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
73
diff
changeset
|
3 # connects to the telnet console of the application for the specified service of the current project |
73 | 4 source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh" |
5 | |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
73
diff
changeset
|
6 container=$(composeGetContainer ${1?"Must specify the app service of the console to connect to"} ) |
44
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
7 |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
73
diff
changeset
|
8 ip=$(docker inspect -f '{{.NetworkSettings.IPAddress}}' $container) |
44
e5ba33051de7
add scripts and compose file for importing from server
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
9 |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
73
diff
changeset
|
10 docker run -it -v ${PWD}:/tmp -v /ssdt:/ssdt --rm docker.ssdt.io/ssdt-utils telnet $ip 2000 | tee console.log |
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
73
diff
changeset
|
11 |