AAF non-root
[aaf/sms.git] / sms-service / bin / build_sms_image.sh
index 10b5418..5dead3f 100755 (executable)
@@ -7,12 +7,13 @@ cd ${DOCKER_BUILD_DIR}
 
 BUILD_ARGS="--no-cache"
 ORG="onap"
-VERSION="3.0.0"
+VERSION="4.0.0"
 PROJECT="aaf"
 IMAGE="sms"
 DOCKER_REPOSITORY="nexus3.onap.org:10003"
 IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
 TIMESTAMP=$(date +"%Y%m%dT%H%M%S")
+DUSER=aaf
 
 if [ $HTTP_PROXY ]; then
     BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}"
@@ -25,7 +26,11 @@ function generate_binary {
     pushd ../src/sms
     make build
     popd
+    pushd ../src/preload
+    make build
+    popd
     cp ../target/sms .
+    cp ../target/preload .
 }
 
 function copy_certificates {
@@ -35,7 +40,7 @@ function copy_certificates {
 }
 
 function cleanup {
-    rm sms
+    rm sms preload
     rm aaf-sms.pub
     rm aaf-sms.pr
     rm aaf_root_ca.cer