mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 09:05:10 +00:00
Change-Id: I235cb62df492b7713bb1c355b7457f679903bd34 Signed-off-by: Anthony O'Dowd <a_o-dowd@uk.ibm.com>
25 lines
No EOL
683 B
Bash
Executable file
25 lines
No EOL
683 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script uses the logspout and http stream tools to let you watch the docker containers
|
|
# in action.
|
|
#
|
|
# More information at https://github.com/gliderlabs/logspout/tree/master/httpstream
|
|
|
|
if [ -z "$1" ]; then
|
|
DOCKER_NETWORK=basicnetwork_basic
|
|
else
|
|
DOCKER_NETWORK="$1"
|
|
fi
|
|
|
|
echo Starting monitoring on all containers on the network ${DOCKER_NETWORK}
|
|
|
|
docker kill logspout 2> /dev/null 1>&2 || true
|
|
docker rm logspout 2> /dev/null 1>&2 || true
|
|
|
|
docker run -d --name="logspout" \
|
|
--volume=/var/run/docker.sock:/var/run/docker.sock \
|
|
--publish=127.0.0.1:8000:80 \
|
|
--network ${DOCKER_NETWORK} \
|
|
gliderlabs/logspout
|
|
sleep 3
|
|
curl http://127.0.0.1:8000/logs |