twister-core/docker-entrypoint.sh
Martin Honermeyer b1b0ec8709 Fix rpcallowip to use the real bridge IP in the Docker container
This is needed for Docker >=1.9 because the bridge IP is not necessarily
172.17.42.1 anymore. (See https://github.com/docker/docker/issues/17305
for reference.)

refs #357
2015-11-12 00:34:12 +01:00

7 lines
222 B
Bash
Executable File

#!/bin/bash
set -e
BRIDGE_IP=$(ip ro get 8.8.8.8 | grep -oP '(?<=via )([\d\.]+)')
exec /twister-core/twisterd -rpcuser=user -rpcpassword=pwd -rpcallowip=${BRIDGE_IP} -htmldir=/twister-html -printtoconsole -port=28333 $*