summaryrefslogtreecommitdiffstats
path: root/test/start_test.sh
blob: 9366ff2d66ceeeea3ffdcddb89bef17aa1b2ee71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ -z "$1" ] ; then
  echo "usage: $0 <id of docker image>"
  exit 1
fi

basedir="$( cd -P "$( dirname "$0" )" && pwd )/munin"

docker run -it \
  -u 1001 \
  -p 8080:8080 \
  -v $basedir:/munin/db \
  -e NODES="styx:192.168.26.117" \
  "$@"