summaryrefslogtreecommitdiffstats
path: root/deliveries/os_build_febe.sh
diff options
context:
space:
mode:
authortalasila <talasila@research.att.com>2017-02-17 09:31:29 -0500
committertalasila <talasila@research.att.com>2017-02-17 10:48:31 -0500
commit91d90796f78ed9d668e96b226f1c18c71962896a (patch)
tree30bd6cb80e8d63e4424160b904dca8035d5ff96f /deliveries/os_build_febe.sh
parentf9b06313332d65f2a6600667d1b92c2ebede5453 (diff)
adding docker scripts
Change-Id: I25e4781593ecb01680ced87be660b2b38b406259 Signed-off-by: talasila <talasila@research.att.com>
Diffstat (limited to 'deliveries/os_build_febe.sh')
-rw-r--r--deliveries/os_build_febe.sh69
1 files changed, 69 insertions, 0 deletions
diff --git a/deliveries/os_build_febe.sh b/deliveries/os_build_febe.sh
new file mode 100644
index 00000000..4497befa
--- /dev/null
+++ b/deliveries/os_build_febe.sh
@@ -0,0 +1,69 @@
+#!/bin/bash
+
+source $(dirname $0)/os_settings.sh
+
+CURRENTDIR="$(pwd)"
+
+
+# install ecomp portal
+rm -rf $CURRENTDIR/$WORKINGDIR
+mkdir $CURRENTDIR/$WORKINGDIR
+cd $CURRENTDIR/$WORKINGDIR
+SOURCEDIR=$CURRENTDIR/$WORKINGDIR/Source
+mkdir $SOURCEDIR
+cd $SOURCEDIR
+PROJECTDIR=$SOURCEDIR/ecomp-portal-core
+mkdir $PROJECTDIR
+
+#create project dir
+#copy FE and BE
+cd $CURRENTDIR
+cd ..
+
+cp -r ecomp-portal-FE $PROJECTDIR/ecomp-portal-FE
+cp -r ecomp-portal-BE $PROJECTDIR/ecomp-portal-BE
+cp -r ecompsdkos/ecomp-sdk $PROJECTDIR/ecomp-sdk
+
+#!/bin/bash
+shopt -s expand_aliases
+source ~/.bashrc
+
+cd $PROJECTDIR/ecomp-portal-FE/
+
+${MVN} install
+
+cd $PROJECTDIR/ecomp-portal-BE
+
+${MVN} install
+
+# now install sdk app
+cd $PROJECTDIR/ecomp-sdk/sdk-app
+
+${MVN} install
+
+mv target/ep-sdk-app-1.0.0 target/ep-sdk-app
+
+# now install DBC app
+cd $SOURCEDIR
+DBCDIR=$SOURCEDIR/ST_DBPA
+mkdir $DBCDIR
+
+#copy DBC project
+cd $CURRENTDIR
+cd ..
+
+cp -r dmaapbc/dcae_dmaapbc_webapp $DBCDIR/dcae_dmaapbc_webapp
+
+cd $DBCDIR/dcae_dmaapbc_webapp
+
+${MVN} install
+
+cd target
+mv dmaap-bc-app.1.0.0.0 ep-dbc-app
+
+
+# install into docker
+cd $CURRENTDIR
+
+echo "running: docker build -t ${IMGNAME} --build-arg VERSION=${VERSION} --build-arg PORTAL_SDK_DIR=${PORTAL_SDK_DIR} --build-arg SDK_DIR=${SDK_DIR} --build-arg FE_DIR=${FE_DIR} --build-arg PORTAL_DBC_DIR=${PORTAL_DBC_DIR} -f ./os_Dockerfile ."
+docker build -t ${IMGNAME} --build-arg VERSION=${VERSION} --build-arg PORTAL_SDK_DIR=${PORTAL_SDK_DIR} --build-arg SDK_DIR=${SDK_DIR} --build-arg FE_DIR=${FE_DIR} --build-arg PORTAL_DBC_DIR=${PORTAL_DBC_DIR} -f ./os_Dockerfile .