summaryrefslogtreecommitdiffstats
path: root/deployments/build.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-10-01 02:25:27 -0700
committerVictor Morales <victor.morales@intel.com>2018-10-01 02:25:27 -0700
commit3a726acfc600538f09636a99232adc84095cdb31 (patch)
treeaf194bbff08462b7905e14dae9302c25dcd42fbd /deployments/build.sh
parent145648701486244f632cc6aaaa0f70a252db829a (diff)
Fix build.sh deployment script
The build.sh file didn't include the GOPATH variable which in some cases was causing some building failures. This change includes a source instruction at beginining of the file. Change-Id: I718411fd90ede74decbaac7efc5c065aa5a853fc Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'deployments/build.sh')
-rwxr-xr-xdeployments/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/deployments/build.sh b/deployments/build.sh
index 3a6ea856..a1f093a7 100755
--- a/deployments/build.sh
+++ b/deployments/build.sh
@@ -11,7 +11,10 @@
set -o nounset
set -o pipefail
+source /etc/environment
+
k8s_path="$(git rev-parse --show-toplevel)"
+export GOPATH=$k8s_path
echo "Compiling source code"
pushd $k8s_path/src/k8splugin/