blob: 4497befa220dfa62493505c501c2c0dcb6fc17e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 .
|