icinga2/dev/run
2014-04-11 11:42:37 +02:00

14 lines
333 B
Bash
Executable file

#!/bin/sh
cd `dirname -- $0`
DIR=`pwd`
cd docker
docker.io build -t icinga2 --rm .
if [ "$1" != "-i" ]; then
command="/root/build"
else
command="/bin/bash"
fi
docker.io run -v $DIR/..:/root/icinga2 -v $DIR/.build:/root/icinga2-build -v $HOME/.ccache:/root/.ccache -v $DIR/config:/root/icinga2-config -t -i --rm icinga2 $command