Adam Cameron
lucee-server/deploy/ , as per those docs?
I only ask cos that mechanism seems to be a way of installing an extension "on the fly" rather than "at install time"? I'd like the extensions I need "already installed" in my Docker image, rather than it being another step I need to wait to run when the container starts up (if that makes sense). EG: I wanna do it once when I create the image, not every time I start a new container.Adam Cameron
zackster
06/21/2023, 10:36 AMzackster
06/21/2023, 10:36 AMAdam Cameron
LUCEE_EXTENSIONS approach (which is what I got from googling "lucee warmup").
I want to install the extensions in the image. Not in a running container.Adam Cameron
Adam Cameron
zackster
06/21/2023, 11:23 AMian.hickey
06/21/2023, 1:09 PMAdam Cameron
apt-install / docker-php-ext-install etc which all run when building the image from the outset. Was hoping there was a Lucee / Tomcat / something equiv. Or just a file copy or something.Adam Cameron
jamiejackson
06/21/2023, 6:07 PMjamiejackson
06/21/2023, 6:08 PMjamiejackson
06/21/2023, 6:09 PMjamiejackson
06/21/2023, 6:12 PMlex files as opposed to extensions that are part of the lucee extensions repository, @Adam Cameron? if so, replace the ENV line in my Dockerfile snippet with a COPY into the appropriate directory.
the subsequent warmup line will take care of .lex extension files, too.jamiejackson
06/21/2023, 6:14 PMjamiejackson
06/23/2023, 9:45 PMAdam Cameron
run apt install vim in the Dockerfile... goes an installs vim during image build. Similarly with PHP extensions. All the work is done when building the image.
All you appear to be doing in that Dockerfile, @jamiejackson is telling Lucee which extensions to install when Lucee runs, which doesn't occur until one runs the container. Not build the image. It's just setting env vars that Lucee looks for when it starts.
It's not a show stopper for me at all. Just a less good approach than it could be.jamiejackson
06/24/2023, 1:29 PMzackster
06/24/2023, 1:31 PMjamiejackson
06/24/2023, 1:32 PMjamiejackson
06/24/2023, 1:34 PMjamiejackson
06/24/2023, 1:36 PMAdam Cameron
RUN LUCEE_ENABLE_WARMUP=true /usr/local/tomcat/bin/catalina.sh start. Yeah gotcha.
We don't use ORM as we're not complete lunatics, so NP there.
(full disclosure: we do use CFWheels though (don't @ me), which kinda claims it has an "ORM" even though... well... it's a stretch to describe it thus)quetwo
06/25/2023, 7:28 PMENV _LUCEE_EXTENSIONS_ "D46B46A9-A0E3-44E1-D972A04AC3A8DC10;name=Chart;version=1.0.19.24,B737ABC4-D43F-4D91-8E8E973E37C40D1B;name=Images;version=2.0.0.25"quetwo
06/25/2023, 7:29 PMRUN /usr/local/tomcat/bin/prewarm.sh
to the end of your docker config. That line is not required, but can make spinning the docker images take a LOT less time in production (so it won't have to download them on initial warmup)quetwo
06/25/2023, 7:30 PMMark Drew (he/him)
06/26/2023, 3:28 PMMark Drew (he/him)
06/26/2023, 3:29 PMquetwo
06/26/2023, 5:03 PMMark Drew (he/him)
06/26/2023, 5:18 PMAdam Cameron
RUN LUCEE_ENABLE_WARMUP=true /usr/local/tomcat/bin/catalina.sh start does the trick, that's fine.Adam Cameron
quetwo
06/26/2023, 6:39 PMquetwo
06/26/2023, 6:39 PMMark Drew (he/him)
06/27/2023, 12:56 PMquetwo
06/27/2023, 1:04 PMMark Drew (he/him)
06/27/2023, 1:04 PMMark Drew (he/him)
06/27/2023, 1:04 PMquetwo
06/27/2023, 1:05 PMMark Drew (he/him)
06/27/2023, 1:05 PMjamiejackson
06/28/2023, 2:08 AMIn my setup, I usually use a secrets manager to inject certain passwords (like the lucee password) as an environment variable when the container starts.
For that particular use case, using secret directly, with a custom target location is cleanest. (Lots of other use cases need a secrets-to-env-var entrypoint routine, but not that one.)
zackster
06/28/2023, 4:37 AMquetwo
06/28/2023, 1:16 PMMark Drew (he/him)
06/28/2023, 4:22 PMzackster
06/28/2023, 4:27 PMquetwo
06/28/2023, 5:32 PM