utilize docker for building osmclient
Change-Id: I0054fee8c29a71ffaf514276c90e5f00b3466854
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
diff --git a/jenkins/osmclient/start_build b/jenkins/osmclient/start_build
index 2aaeadc..df4fc27 100755
--- a/jenkins/osmclient/start_build
+++ b/jenkins/osmclient/start_build
@@ -34,11 +34,17 @@
OSM_git_checkout "$@"
-apt-get update
-apt-get install -y make
-make build_tools
-make test
-make package
+apt update
+apt install -y docker.io
+
+docker build -t $OSM_MDG .
+DOCKER_ARGS="-v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) $OSM_MDG"
+
+if [ -n "$NOTEST" ]; then
+ docker run $DOCKER_ARGS /bin/bash -c "./docker_command.sh $(id -u -n) $(id -g -n) tox"
+fi
+
+docker run $DOCKER_ARGS /bin/bash -c "./docker_command.sh $(id -u -n) $(id -g -n) tox -e build"
RC=$?
INFO "done, RC=$RC"