-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sh
executable file
·53 lines (38 loc) · 1.84 KB
/
build.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
#!/bin/bash
#set -eu
# To recover from failed builds
# rm -rf lucee*jar apache-tomcat-9.0.89.tar.gz OpenJDK11U-jre_x64_linux_hotspot_11.0.23_9.tar.gz jdk-11.0.23+9-jre lucee/tomcat9/tomcat/apache-tomcat-9.0.89 installbuilder-* /tmp/ib
wget https://cdn.lucee.org/lucee-${LUCEE_VERSION}.jar
mv lucee-${LUCEE_VERSION}.jar lucee/lucee/lib/
wget ${TOMCAT_URL}
cd lucee/tomcat9/
tar zxf ../../apache-tomcat-9.0.89.tar.gz
cd ../..
rm apache-tomcat-9.0.89.tar.gz
mv lucee/tomcat9/apache-tomcat-9.0.89 lucee/tomcat9/tomcat
rm -rf lucee/tomcat9/tomcat/webapps
cp -ar lucee/tomcat9/tomcat-lucee-conf/ lucee/tomcat9/tomcat/
wget ${JRE_URL}
tar zxf OpenJDK11U-jre_x64_linux_hotspot_11.0.23_9.tar.gz
cp -r jdk-11.0.23+9-jre/* jre/jre64-lin/jre/
rm -rf jdk-11.0.23+9-jre
wget https://releases.installbuilder.com/installbuilder/installbuilder-enterprise-23.4.0-linux-installer.run
chmod a+x ./installbuilder-enterprise-23.4.0-linux-installer.run
./installbuilder-enterprise-23.4.0-linux-installer.run --prefix /tmp/ib --mode unattended
cat lucee/lucee.xml.template | sed -e "s,<version>LUCEE_VERSION</version>,<version>${LUCEE_VERSION}</version>," > lucee/lucee.xml
cd lucee
/tmp/ib/bin/builder quickbuild lucee.xml
echo -n Built
ls -laht /tmp/ib/output/
/tmp/ib/output/lucee-${LUCEE_VERSION}-linux-x64-installer.run --version
out=`/tmp/ib/output/lucee-${LUCEE_VERSION}-linux-x64-installer.run --version`
tet="Lucee $LUCEE_VERSION
if [[ $out != $tet* ]]
then
echo Incorrect version banner
exit 1
fi
# Requires root :(
# sudo /tmp/ib/output/lucee-${LUCEE_VERSION}-linux-x64-installer.run --mode unattended --prefix /tmp/lucee --installconn false --installmodcfml false --installiis false --startatboot false --luceepass ibtest --systemuser $USER
# Post install, make HTTP and check return code
# i.e. the You are now successfully running Lucee 5.4.1.2-SNAPSHOT on your system! banner