Skip to content

Commit a979fc2

Browse files
committed
OCP-DEMO Merge all scripts into install-all.sh
There is no reason to ask the user to run all these scripts separately. This commit will make it possible to start the demo by running a single script.
1 parent a99ccb1 commit a979fc2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

openshift/message-board/script/install-all.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -x
33
set -e
44

5+
# Deploy custome image of Infinispan
6+
sh ./install-custom-infinispan-image.sh
7+
58
# Copy bundles for the binary builds
69
sh ./create-binary-build-directory.sh
710

@@ -22,6 +25,7 @@ oc new-app --template=mysql-persistent -p DATABASE_SERVICE_NAME=mysql -p MYSQL_U
2225
oc new-app --image-stream=wildfly-130-centos7~./nocontent -e MYSQL_USER=messageboard -e MYSQL_PASSWORD=redhat -e MYSQL_DATABASE=account -e OPENSHIFT_KUBE_PING_NAMESPACE=account --name=account-service
2326
oc start-build account-service --from-dir=./account-service
2427

28+
2529
# Install Message MicroService
2630
oc new-app --image-stream=wildfly-130-centos7~./nocontent -e OPENSHIFT_KUBE_PING_NAMESPACE=message --name=message-service
2731
oc start-build message-service --from-dir=./message-service
@@ -39,4 +43,15 @@ oc set probe dc/message-service --liveness --failure-threshold 3 --initial-delay
3943
oc set probe dc/account-service --readiness --failure-threshold 3 --initial-delay-seconds 30 --get-url=http://:8080/account-service/health
4044
oc set probe dc/message-service --readiness --failure-threshold 3 --initial-delay-seconds 30 --get-url=http://:8080/message-service/health
4145

42-
echo "Insatallation finished!"
46+
# Update Account MicroService
47+
sh ./binary-build-account.sh
48+
49+
# Update Message MicroService
50+
sh ./binary-build-message.sh
51+
52+
# Update Web App
53+
sh ./binary-build-web.sh
54+
55+
echo "Installation Completed!"
56+
echo "OpenShift Console: https://127.0.0.1:8443/console"
57+
echo "Web app: http://web-myproject.127.0.0.1.nip.io/"

0 commit comments

Comments
 (0)