Skip to content

Commit 70c257f

Browse files
MARINA.KOGAN@ORACLE.COMrussgold
authored andcommitted
replaced build with download fir webapp monitoring exporter
1 parent 00990a9 commit 70c257f

File tree

1 file changed

+8
-6
lines changed
  • samples/kubernetes/end2end/demo-domains/domainBuilder

1 file changed

+8
-6
lines changed

samples/kubernetes/end2end/demo-domains/domainBuilder/build.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
set -e # Exit immediately if a command exits with a non-zero status.
66

77
WDT_VERSION=0.24
8+
MONITORING_EXPORTER_VERSION=1.1.0
89

910
CUR_DIR="$(dirname "$(readlink -f "$0")")" # get the absolute path of this file's folder
1011
PRJ_ROOT=${CUR_DIR}/../../../../..
@@ -18,13 +19,14 @@ function createArchive() {
1819
cd test-webapp && mvn clean install && cd ..
1920
cp test-webapp/target/testwebapp.war ${TMP_DIR}/archive/wlsdeploy/applications/testwebapp.war
2021

21-
echo 'Build the metrics exporter...'
22+
echo "Download the metrics exporter webapp from ://github.com/oracle/weblogic-monitoring-exporter/releases/download/v${MONITORING_EXPORTER_VERSION}/get${MONITORING_EXPORTER_VERSION}.sh..."
23+
2224
cd $PRJ_ROOT
23-
mvn clean install
24-
cd webapp
25-
mvn clean package -Dconfiguration=${CUR_DIR}/../../dashboard/exporter-config.yaml
25+
wget https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v${MONITORING_EXPORTER_VERSION}/get${MONITORING_EXPORTER_VERSION}.sh
26+
bash get${MONITORING_EXPORTER_VERSION}.sh ${CUR_DIR}/../../dashboard/exporter-config.yaml
27+
2628
cd $CUR_DIR
27-
cp $PRJ_ROOT/webapp/target/wls-exporter.war \
29+
cp $PRJ_ROOT/wls-exporter.war \
2830
${TMP_DIR}/archive/wlsdeploy/applications/wls-exporter.war
2931

3032
echo 'Build the WDT archive...'
@@ -34,7 +36,7 @@ function createArchive() {
3436

3537
function cleanTmpDir() {
3638
rm -rf ${CUR_DIR}/test-webapp/target
37-
rm -rf ${PRJ_ROOT}/webapp/target
39+
rm -rf ${PRJ_ROOT}/wls-exporter.war
3840
rm -rf ${TMP_DIR}
3941
}
4042

0 commit comments

Comments
 (0)