Skip to content

Commit

Permalink
contrib: Add script to bring up local cilium-agent
Browse files Browse the repository at this point in the history
Signed-off-by:  <thomas@cilium.io>
  • Loading branch information
tgraf committed Mar 17, 2017
1 parent d7d571b commit e4fab2c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions contrib/scripts/cilium-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

dir=$(cd $(dirname ${BASH_SOURCE})/../.. && pwd)

function cleanup {
killall -9 cilium-docker 2> /dev/null
killall -9 cilium-agent 2> /dev/null
}

trap cleanup EXIT
cleanup

if [ -z $(which clang) ]; then
echo "Looking for LLVM installation..."
llvm_dir=$($dir/contrib/scripts/find-llvm.sh)
echo "Adding $llvm_dir/bin to PATH"
export PATH="$llvm_dir/bin:$PATH"
fi

sleep 3s

$dir/plugins/cilium-docker/cilium-docker&
$dir/daemon/cilium-agent $*

0 comments on commit e4fab2c

Please sign in to comment.