Mercurial > public > ssdt-docker
view scripts/console.sh @ 82:b2deadc0cf17
USPSR-2298 Update usps db image to ssdt-postgres:3
author | Matt Calmes <calmes@nwoca.org> |
---|---|
date | Thu, 25 Aug 2016 16:19:15 +0100 |
parents | 541766977a11 |
children | 8f45c43ea7a4 |
line wrap: on
line source
#!/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