-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathinit-docker.sh
executable file
·108 lines (96 loc) · 4.38 KB
/
init-docker.sh
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/sh
DEMO="JBoss BRMS Red Hat Cool Store Demo"
AUTHORS1="Jason Milliron, Andrew Block,"
AUTHORS2="AMahdy AbdElAziz, Eric D. Schabell"
AUTHORS3="Duncan Doyle, Jaen Swart"
PROJECT="[email protected]:jbossdemocentral/brms-coolstore-demo.git"
PRODUCT="JBoss BRMS"
DOCKERFILE="support/docker/Dockerfile"
SRC_DIR=./installs
BRMS=jboss-brms-6.4.0.GA-deployable-eap7.x.zip
EAP=jboss-eap-7.0.0-installer.jar
VERSION=6.4
# wipe screen.
clear
echo
echo "##############################################################"
echo "## ##"
echo "## Setting up the ${DEMO} ##"
echo "## ##"
echo "## ##"
echo "## #### #### # # ### ##"
echo "## # # # # # # # # # ##"
echo "## #### #### # # # ## ##"
echo "## # # # # # # # ##"
echo "## #### # # # # ### ##"
echo "## ##"
echo "## ##"
echo "## brought to you by, ##"
echo "## ${AUTHORS1} ##"
echo "## ${AUTHORS2} ##"
echo "## ${AUTHORS3} ##"
echo "## ##"
echo "## ${PROJECT} ##"
echo "## ##"
echo "##############################################################"
echo
# make some checks first before proceeding.
if [ -r $SRC_DIR/$EAP ] || [ -L $SRC_DIR/$EAP ]; then
echo Product sources are present...
echo
else
echo Need to download $EAP package from the Customer Portal
echo and place it in the $SRC_DIR directory to proceed...
echo
exit
fi
#if [ -r $SRC_DIR/$EAP_PATCH ] || [ -L $SRC_DIR/$EAP_PATCH ]; then
# echo Product patches are present...
# echo
#else
# echo Need to download $EAP_PATCH package from the Customer Portal
# echo and place it in the $SRC_DIR directory to proceed...
# echo
# exit
#fi
if [ -r $SRC_DIR/$BRMS ] || [ -L $SRC_DIR/$BRMS ]; then
echo Product sources are present...
echo
else
echo Need to download $BRMS package from the Customer Portal
echo and place it in the $SRC_DIR directory to proceed...
echo
exit
fi
cp support/docker/Dockerfile .
echo Starting Docker build.
echo
docker build -t jbossdemocentral/brms-coolstore-demo .
if [ $? -ne 0 ]; then
echo
echo Error occurred during Docker build!
echo Consult the Docker build output for more information.
exit
fi
echo Docker build finished.
echo
rm Dockerfile
echo
echo "==================================================================================="
echo "= ="
echo "= You can now start the $PRODUCT in a Docker container with: ="
echo "= ="
echo "= docker run -it -p 8080:8080 -p 9990:9990 jbossdemocentral/brms-coolstore-demo ="
echo "= ="
echo "= Login into business central at: ="
echo "= ="
echo "= http://localhost:8080/business-central (u:brmsAdmin / p:jbossbrms1!) ="
echo "= ="
echo "= Login into the Coostore application at: ="
echo "= ="
echo "= http://localhost:8080/brms-coolstore-demo ="
echo "= ="
echo "= ="
echo "= $PRODUCT $VERSION $DEMO Setup Complete. ="
echo "= ="
echo "==================================================================================="