2 SERVICE_BIN="edge-orchestration"
3 BASE_DIR=$( cd "$(dirname "$0")" ; pwd )
5 if [ -e $BASE_DIR/vendor/ ]; then
6 ln -sf $BASE_DIR/vendor $BASE_DIR/vendor/src
10 export GOBIN=$BASE_DIR/bin
11 export GOPATH=$GOPATH:$BASE_DIR:$BASE_DIR/vendor
13 go build -a -ldflags '-extldflags "-static"' -o $BASE_DIR/bin/$SERVICE_BIN orchestration