@@ -15,10 +15,6 @@ cd $PROJECT_DIR
15
15
echo " #########################################################"
16
16
echo " Add mysql persistent template and deploy the MySQL Server "
17
17
echo " #########################################################"
18
- # oc new-app --template=mysql-persistent \
19
- # -p MYSQL_USER=mysql \
20
- # -p MYSQL_PASSWORD=mysql \
21
- # -p MYSQL_DATABASE=catalogdb
22
18
oc create -f $SCRIPTS_DIR /service/mysql-persistent-template-with-init.json
23
19
oc new-app --template=mysql-persistent-with-init \
24
20
-p MYSQL_USER=mysql \
@@ -31,16 +27,6 @@ oc new-app --template=mysql-persistent-with-init \
31
27
# -p MYSQL_PASSWORD=mysql \
32
28
# -p MYSQL_DATABASE=catalogdb
33
29
34
- # MySQL init based on https://github.com/VeerMuchandi/database-initialization
35
- # export escapedQuery=$(sed -e 's:":\\\\":g' $SCRIPTS_DIR/service/data-mysql.sql | tr -d '\n' | tr -s ' ')
36
- # eval $(sed -e "s/\$MYQUERY/$escapedQuery/" $SCRIPTS_DIR/db_patch.sh)
37
- # wait for changes to take place
38
- # sleep 20
39
-
40
- # update DB settings and wait for changes to take place
41
- # oc rollout latest mysql
42
- # sleep 20
43
-
44
30
45
31
46
32
echo " ##########################################"
@@ -50,7 +36,6 @@ cd cdservice
50
36
51
37
mkdir -p src/main/config-local
52
38
mkdir -p src/main/config-openshift
53
- # cp $SCRIPTS_DIR/service/data-mysql.sql src/main/config-openshift/data.sql
54
39
mv src/main/resources/application.properties src/main/config-local
55
40
mv src/main/resources/data.sql src/main/config-local
56
41
0 commit comments