From: jw_wonny.cha Date: Mon, 25 Mar 2019 08:31:05 +0000 (+0900) Subject: Add build script X-Git-Tag: submit/tizen/20190409.085658~19^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3176005caed913bc7fba12b8d2ebbf5a0233669e;p=platform%2Fcore%2Fsystem%2Fedge-orchestration.git Add build script --- diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f4f878b --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#! /bin/bash +SERVICE_BIN="edge-orchestration" +BASE_DIR=$( cd "$(dirname "$0")" ; pwd ) + +if [ -e $BASE_DIR/vendor/ ]; then + ln -sf $BASE_DIR/vendor $BASE_DIR/vendor/src +fi + +export GOARCH=amd64 +export GOBIN=$BASE_DIR/bin +export GOPATH=$GOPATH:$BASE_DIR:$BASE_DIR/vendor + +go build -a -ldflags '-extldflags "-static"' -o $BASE_DIR/bin/$SERVICE_BIN orchestration + +cd $GOBIN +ls -ail \ No newline at end of file