mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
Add integration test for procspy edges.
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -ex
|
||||
|
||||
readonly ARG="$1"
|
||||
|
||||
eval $(weave env)
|
||||
|
||||
start_container() {
|
||||
IMAGE=$2
|
||||
BASENAME=$3
|
||||
REPLICAS=$1
|
||||
local IMAGE=$2
|
||||
local BASENAME=$3
|
||||
local REPLICAS=$1
|
||||
shift 3
|
||||
HOSTNAME=$BASENAME.weave.local
|
||||
local HOSTNAME=$BASENAME.weave.local
|
||||
|
||||
for i in $(seq $REPLICAS); do
|
||||
if docker inspect $BASENAME$i >/dev/null 2>&1; then
|
||||
docker rm -f $BASENAME$i
|
||||
fi
|
||||
docker run -d --name=$BASENAME$i --hostname=$HOSTNAME $@ $IMAGE
|
||||
if [ "$ARG" != "-rm" ]; then
|
||||
docker run -d --name=$BASENAME$i --hostname=$HOSTNAME $@ $IMAGE
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user