forked from Dynatrace/easyTravel-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-et.sh
executable file
·212 lines (199 loc) · 8.26 KB
/
build-et.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#!/bin/bash
set -e
ET_SRC_URL=${ET_SRC_URL:-"http://etinstallers.demoability.dynatracelabs.com/latest/dynatrace-easytravel-src.zip"}
ET_SRC_HOME=/tmp
ET_SRC_CF_HOME="${ET_SRC_HOME}/CustomerFrontend"
ET_SRC_BB_HOME="${ET_SRC_HOME}/BusinessBackend"
ET_SRC_LG_HOME="${ET_SRC_HOME}/com.dynatrace.uemload"
ET_DEPLOY_HOME="${ET_DEPLOY_HOME:-$(pwd)/deploy}"
ET_CF_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_CF_DEPLOY_HOME:-frontend}"
ET_ACF_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_ACF_DEPLOY_HOME:-angularfrontend}"
ET_BB_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_BB_DEPLOY_HOME:-backend}"
ET_LG_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_LG_DEPLOY_HOME:-loadgen}"
ET_HLG_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_HLG_DEPLOY_HOME:-headlessloadgen}"
ET_MG_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_MG_DEPLOY_HOME:-mongodb}"
ET_MGC_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_MGC_DEPLOY_HOME:-mongodb-content-creator}"
ET_PS_DEPLOY_HOME="${ET_DEPLOY_HOME}/${ET_PS_DEPLOY_HOME:-pluginservice}"
ET_CF_DEPLOY_LIB_HOME="${ET_CF_DEPLOY_HOME}/lib"
cd "${ET_SRC_HOME}"
# Download easyTravel sources
echo "EasyTravel source: ${ET_SRC_URL}"
curl -L -o easyTravel-src.zip "${ET_SRC_URL}"
# Unarchive and build easyTravel sources while setting up some env vars
unzip ./easyTravel-src.zip
export ANT_OPTS="-Dfile.encoding=UTF8"
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ant -f ./Distribution war
cd "${ET_SRC_HOME}/Distribution/dist"
# Deploy easyTravel build artifacts into the workspace
mkdir -p "${ET_BB_DEPLOY_HOME}"
cp -v ./business/backend.war ${ET_BB_DEPLOY_HOME}
mkdir -p "${ET_CF_DEPLOY_HOME}"
cp -v ./customer/frontend.war ${ET_CF_DEPLOY_HOME}
mkdir -p "${ET_ACF_DEPLOY_HOME}"
cp -v ./angular/angularFrontend.war ${ET_ACF_DEPLOY_HOME}
mkdir -p "${ET_PS_DEPLOY_HOME}"
cp -v ./pluginservice/PluginService.war ${ET_PS_DEPLOY_HOME}
mkdir -p "${ET_MG_DEPLOY_HOME}"
cp -v ${ET_SRC_HOME}/ThirdPartyLibraries/MongoDB/data/easyTravel-mongodb-db.tar.gz ${ET_MG_DEPLOY_HOME}
mkdir -p "${ET_LG_DEPLOY_HOME}"
tar -cvzf "${ET_LG_DEPLOY_HOME}/loadgen.tar.gz" \
./lib/jaxb-runtime-2.3.2.jar \
./lib/jakarta.xml.bind-api-2.3.2.jar \
./lib/istack-commons-runtime-3.0.8.jar \
./lib/jakarta.jws-api-1.1.1.jar \
./lib/jakarta.xml.ws-api-2.3.2.jar \
./lib/jaxws-rt-2.3.2.jar \
./lib/jakarta.xml.soap-api-1.4.1.jar \
./lib/jakarta.activation-api-1.2.1.jar \
./lib/annotations-api.jar \
./lib/streambuffer-1.5.7.jar \
./lib/saaj-impl-1.5.1.jar \
./lib/policy-2.7.6.jar \
./lib/stax-ex-1.8.1.jar \
./lib/gmbal-4.0.0.jar \
./lib/management-api-3.2.1.jar \
./lib/FastInfoset-1.2.16.jar \
./lib/pfl-basic-4.0.1.jar \
./lib/pfl-tf-4.0.1.jar \
./lib/txw2-2.3.2.jar \
./lib/commons-cli-*.jar \
./lib/commons-io-*.jar \
./lib/commons-lang*.jar \
./lib/commons-logging-*.jar \
./lib/commons-httpclient-3.1.jar \
./lib/guava-*.jar \
./lib/httpclient-*.jar \
./lib/httpcore-*.jar \
./lib/metrics-core-*.jar \
./lib/metrics-json-*.jar \
./lib/metrics-jvm-*.jar \
./lib/metrics-servlets-*.jar \
./lib/mvel*.jar \
./lib/nekohtml-*.jar \
./lib/xercesImpl-*.jar \
./lib/xml-apis-*.jar \
./lib/logback-*.jar \
./lib/slf4j-api-1.7.25.jar \
./lib/openkit-3.*.jar \
./resources/easyTravel.properties \
./resources/easyTravelConfig.properties \
./resources/easyTravelThirdPartyResourcesizes.properties \
./resources/Users.txt \
./resources/logback.xml \
./com.dynatrace.easytravel.commons.jar \
./uemload.jar
mkdir -p "${ET_HLG_DEPLOY_HOME}"
tar -cvzf "${ET_HLG_DEPLOY_HOME}/headlessloadgen.tar.gz" \
./lib/jaxb-runtime-2.3.2.jar \
./lib/jakarta.xml.bind-api-2.3.2.jar \
./lib/istack-commons-runtime-3.0.8.jar \
./lib/jakarta.jws-api-1.1.1.jar \
./lib/jakarta.xml.ws-api-2.3.2.jar \
./lib/jaxws-rt-2.3.2.jar \
./lib/jakarta.xml.soap-api-1.4.1.jar \
./lib/jakarta.activation-api-1.2.1.jar \
./lib/annotations-api.jar \
./lib/streambuffer-1.5.7.jar \
./lib/saaj-impl-1.5.1.jar \
./lib/policy-2.7.6.jar \
./lib/stax-ex-1.8.1.jar \
./lib/gmbal-4.0.0.jar \
./lib/management-api-3.2.1.jar \
./lib/FastInfoset-1.2.16.jar \
./lib/pfl-basic-4.0.1.jar \
./lib/pfl-tf-4.0.1.jar \
./lib/txw2-2.3.2.jar \
./lib/commons-cli-*.jar \
./lib/commons-io-*.jar \
./lib/commons-lang*.jar \
./lib/commons-logging-*.jar \
./lib/commons-httpclient-3.1.jar \
./lib/guava-*.jar \
./lib/httpclient-*.jar \
./lib/httpcore-*.jar \
./lib/metrics-core-*.jar \
./lib/metrics-json-*.jar \
./lib/metrics-jvm-*.jar \
./lib/metrics-servlets-*.jar \
./lib/mvel*.jar \
./lib/nekohtml-*.jar \
./lib/xercesImpl-*.jar \
./lib/xml-apis-*.jar \
./lib/logback-*.jar \
./lib/slf4j-api-1.7.25.jar \
./lib/openkit-3.*.jar \
./lib/jackson-core-2.9.9.jar \
./lib/jackson-annotations-2.9.0.jar \
./lib/jackson-databind-2.9.9.3.jar \
./lib/jackson-jaxrs-base-2.9.9.jar \
./lib/jackson-jaxrs-json-provider-2.9.9.jar \
./lib/jackson-module-jaxb-annotations-2.9.9.jar \
./resources/easyTravel.properties \
./resources/easyTravelConfig.properties \
./resources/easyTravelThirdPartyResourcesizes.properties \
./resources/Users.txt \
./resources/logback.xml \
./com.dynatrace.easytravel.commons.jar \
./uemload.jar \
./lib/selenium-server-standalone-3.141.59.jar \
./lib/client-combined-3.141.59.jar \
./lib/commons-pool-1.6.jar \
./lib/littleproxy-1.1.0-beta-bmp-17.jar \
./chrome-lin64/** \
./lib/netty-all-4.1.56.Final.jar \
./lib/commons-codec-1.8.jar \
./lib/gson-2.8.0.jar \
./lib/tyrus-standalone-client-1.15.jar \
./lib/javax.websocket-client-api-1.1.jar \
./lib/jna-4.1.0.jar \
./lib/json-20080701.jar
mkdir -p "${ET_MGC_DEPLOY_HOME}"
tar -cvzf "${ET_MGC_DEPLOY_HOME}/mongo-db_content-creator-latest.tar.gz" \
./lib/jaxb-runtime-2.3.2.jar \
./lib/jakarta.xml.bind-api-2.3.2.jar \
./lib/istack-commons-runtime-3.0.8.jar \
./lib/jakarta.jws-api-1.1.1.jar \
./lib/jakarta.xml.ws-api-2.3.2.jar \
./lib/jaxws-rt-2.3.2.jar \
./lib/jakarta.xml.soap-api-1.4.1.jar \
./lib/jakarta.activation-api-1.2.1.jar \
./lib/annotations-api.jar \
./lib/streambuffer-1.5.7.jar \
./lib/saaj-impl-1.5.1.jar \
./lib/policy-2.7.6.jar \
./lib/stax-ex-1.8.1.jar \
./lib/gmbal-4.0.0.jar \
./lib/management-api-3.2.1.jar \
./lib/FastInfoset-1.2.16.jar \
./lib/pfl-basic-4.0.1.jar \
./lib/pfl-tf-4.0.1.jar \
./lib/txw2-2.3.2.jar \
./lib/commons-cli-*.jar \
./lib/commons-io-*.jar \
./lib/commons-lang*.jar \
./lib/commons-logging-*.jar \
./lib/commons-httpclient-3.1.jar \
./lib/guava-*.jar \
./lib/httpclient-*.jar \
./lib/httpcore-*.jar \
./lib/metrics-core-*.jar \
./lib/metrics-json-*.jar \
./lib/metrics-jvm-*.jar \
./lib/metrics-servlets-*.jar \
./lib/mvel*.jar \
./lib/nekohtml-*.jar \
./lib/xercesImpl-*.jar \
./lib/xml-apis-*.jar \
./lib/logback-*.jar \
./lib/slf4j-api-1.7.25.jar \
./lib/mongo-java-driver-3.2.2.jar \
./resources/easyTravel.properties \
./resources/easyTravelConfig.properties \
./resources/Users.txt \
./resources/logback.xml \
./com.dynatrace.easytravel.commons.jar \
./com.dynatrace.easytravel.persistence.common.jar \
./com.dynatrace.easytravel.database.jar \
./com.dynatrace.easytravel.launcher.jar \
./com.dynatrace.easytravel.mongodb.jar