Mark Drew (he/him)
08/22/2023, 11:28 AMMark Drew (he/him)
08/22/2023, 11:28 AMAdam Cameron
what it's needing to phone home forIt's phoning home when the stuff ISN'T warmed. ie: to get a proper functional and complete installation of Lucee and its CFML installed, there are two options (as far as I can tell): ⢠prewarm it somehow (under discussion here) ⢠just let it phone home when it tries to run some code calling
encodeForHtml or imageNew or [fuck knows, I don't know what Lucee has decided is an "extentions" for these purposes]
The erraticness I mentioned was off the back of Jamie seeming to indicate that the pre-warm thing didn't seem very reliable.
I think it was you who suggested the prewarm process needed to have small apps that actually hit the functionality in question so Lucee went and got the extensions? To do that, I'd need an app that went through and hit every bit of CFML functionality that's in extensions? Am I understanding this correctly?
So it's not just a "call something like /opt/lucee/bin/prewarm and it will go finish its install", it's just a way of running Lucee quickly to run some code that then triggers the phone-home stuff?Adam Cameron
Mark Drew (he/him)
08/22/2023, 1:35 PMMark Drew (he/him)
08/22/2023, 1:35 PMMark Drew (he/him)
08/22/2023, 1:43 PMFROM azul/zulu-openjdk-alpine:11-latest
ADD <https://cdn.lucee.org/lucee-express-6.0.0.530-SNAPSHOT.zip> /tmp/lucee.zip
RUN apk update && apk add zip && unzip /tmp/lucee.zip -d /opt/lucee && rm /tmp/lucee.zip
COPY ./webroot /opt/lucee/webapps/ROOT/
RUN mkdir -p /opt/lucee/lucee-server/context
ADD <https://ext.lucee.org/esapi-extension-2.2.4.13.lex> /opt/lucee/lucee-server/context/deploy
COPY ./config/catalina.properties /opt/lucee/conf/
RUN LUCEE_ENABLE_WARMUP=true /opt/lucee/startup.sh
ENTRYPOINT [ "/opt/lucee/startup.sh" ]
I added the esapi extension and then did a call , there was no downloading at runtime?Mark Drew (he/him)
08/22/2023, 1:44 PMjamiejackson
08/22/2023, 1:47 PMprewarm.sh.Mark Drew (he/him)
08/22/2023, 1:48 PMMark Drew (he/him)
08/22/2023, 1:48 PMjamiejackson
08/22/2023, 1:49 PMMark Drew (he/him)
08/22/2023, 1:50 PMLUCEE_ENABLE_WARMUP=true /opt/lucee/startup.shjamiejackson
08/22/2023, 1:50 PMjamiejackson
08/22/2023, 1:51 PMMark Drew (he/him)
08/22/2023, 1:51 PMLUCEE_ENABLE_WARMUP=trueMark Drew (he/him)
08/22/2023, 1:51 PMjamiejackson
08/22/2023, 1:52 PMjamiejackson
08/22/2023, 1:52 PMMark Drew (he/him)
08/22/2023, 1:53 PMINFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/lucee/webapps/ROOT] has finished in [1,253] msMark Drew (he/him)
08/22/2023, 1:54 PMMark Drew (he/him)
08/22/2023, 1:59 PMMark Drew (he/him)
08/22/2023, 1:59 PMjamiejackson
08/22/2023, 2:00 PMjamiejackson
08/22/2023, 2:02 PMprewarm.sh but the takeaway for me was that the change to an exported variable (as seen in that commit) was important.Mark Drew (he/him)
08/22/2023, 2:03 PMMark Drew (he/him)
08/22/2023, 2:03 PMADD <https://ext.lucee.org/esapi-extension-2.2.4.13.lex> /opt/lucee/lucee-server/context/deployMark Drew (he/him)
08/22/2023, 2:04 PMMark Drew (he/him)
08/22/2023, 2:07 PMMark Drew (he/him)
08/22/2023, 2:07 PM5.3.12.0-SNAPSHOT.zipjamiejackson
08/22/2023, 2:12 PMWhat version of lucee? so I can checkif that was for me: sorry, i'm not sure how to cross-check that easily.
Mark Drew (he/him)
08/22/2023, 3:09 PMbdw429s
08/22/2023, 3:10 PMAdam Cameron
Adam Cameron
encodeForHtml is pretty core to CFML is an "extension", then I really don't know what would / would not be an extension.
I have no visibility of how any of this stuff works (other than reading the stuff you've provided, which I appreciate), so don't really have much of an understanding of what to expect with all this.Mark Drew (he/him)
08/22/2023, 3:24 PMAdam Cameron
quetwo
08/23/2023, 6:13 PMquetwo
08/23/2023, 6:16 PMzackster
08/25/2023, 9:41 AM