Docker build for SO
[osm/SO.git] / BUILD.sh
index f07940f..3ed2736 100755 (executable)
--- a/BUILD.sh
+++ b/BUILD.sh
@@ -79,8 +79,8 @@ set -x             # Print commands before executing them
 ###############################################################################
 # Set up repo and version
 
-PLATFORM_REPOSITORY=${1:-osm-rbac}
-PLATFORM_VERSION=${2:-5.1.3.9999.70283}
+PLATFORM_REPOSITORY=${1:-OSM3}
+PLATFORM_VERSION=${2:-5.2.0.3.73627}
 
 ###############################################################################
 # Main block
@@ -106,6 +106,13 @@ else
 
     # Install environment to build module
     sudo -H /usr/rift/container_tools/mkcontainer --modes $MODULE-dev --repo ${PLATFORM_REPOSITORY} --rw-version ${PLATFORM_VERSION}
+    sudo -H pip3 install --upgrade pip
+    sudo -H pip3 install setuptools 
+    sudo -H pip3 install juju 
+    sudo mkdir -p /usr/rift/etc/default
+    sudo chmod 777 /usr/rift/etc/default
+    echo LAUNCHPAD_OPTIONS="--use-xml-mode" >> /usr/rift/etc/default/launchpad
+    sudo systemctl daemon-reload
 
     # Build  and install module
     make -j16