-
Notifications
You must be signed in to change notification settings - Fork 43
/
init-docker.sh
executable file
·100 lines (88 loc) · 3.96 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
#!/bin/sh
DEMO="Install Demo"
AUTHORS="Andrew Block, Eric D. Schabell"
PROJECT="[email protected]:jbossdemocentral/bpms-install-demo.git"
PRODUCT="JBoss BPM Suite"
DOCKERFILE="support/docker/Dockerfile"
SRC_DIR=./installs
BPMS=jboss-bpmsuite-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} in Docker ##"
echo "## ##"
echo "## ##"
echo "## #### #### # # ### # # ##### ##### ##### ##"
echo "## # # # # # # # # # # # # # # ##"
echo "## #### #### # # # ## # # # # ### ##"
echo "## # # # # # # # # # # # ##"
echo "## #### # # # ### ##### ##### # ##### ##"
echo "## ##"
echo "## ##"
echo "## brought to you by, ##"
echo "## ${AUTHORS} ##"
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/$BPMS ] || [ -L $SRC_DIR/$BPMS ]; then
echo Product sources are present...
echo
else
echo Need to download $BPMS 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/bpms-travel-agency-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/bpms-travel-agency-demo ="
echo "= ="
echo "= Login into business central at: ="
echo "= ="
echo "= http://localhost:8080/business-central (u:bpmsAdmin / p:bpmsuite1!) ="
echo "= ="
echo "= ="
echo "= $PRODUCT $VERSION $DEMO Setup Complete. ="
echo "= ="
echo "======================================================================================="