Lucee docker images have some extensions/applicati...
# lucee
p
Lucee docker images have some extensions/applications installed by default like mysql and postgresql. How can I remove them so I only have the extensions/app that I use installed?
b
Hey Phil. The Lucee Light docker images work well, but if you want something even lighter, then consider building your own image.
Mark Drew has an example here... https://markdrew.io/slimmer-lucee-docker-images
p
ah, nice! Thanks!
p
Yea I agree with Bill, create a custom image for your needs. But you can technically just have your file do a
RUN rm -rf
and rip out the extensions you dont want to be there, but thats a bit heavy and messy
d
We use the “light-nginx” versions of the Lucee images which come with no extensions. https://hub.docker.com/r/lucee/lucee/tags?name=light-nginx
p
I wonder why some images like
lucee/lucee:6.2.0.321-nginx-tomcat10.1-jre21-temurin-jammy
don't have an equivalent "light" image. And why some images use tomcat 9, 10 or 11.
d
Good question. I noticed some of the versions tagged with tomcat or jre specific versions were actually the same as the plain light-nginx versions. Same versions, size of image, etc.
b
Hey Dan, this makes me think. We use light-ngnix too. but as an example, they do have an MySQL extension already built in. That is if I'm not mistaken?
d
That’s not been our experience.
b
Hmm. Okay. I'm guessing you load extensions using CFConfig?
d
Our base image only loads the admin via cfconfig. Then each of the apps that use our base image install extensions via the LUCEE_EXTENSIONS environment variable.
b
Gotcha, thanks!
q
the
-light
images only have the admin portal extension pre-loaded. the
-zero
images don't have that. Neither has any DB drivers or other extensions -- you need to load them either through the environment variable, through the administrator (if installed and enabled), or by grabbing the .LEX file and putting it in the extensions folder manually.
z
6.2.1 comes with tomcat 11, 6.2 with tomcat 10.1 all older with 9.0
6.2 supports Jakarta aka tomcat 10+
11 wasn't released before 6.2 went RC
Are the 6.2.1 images matching expectations? We added back jdk images and zero
d
Yeah, I think they’re in a great place. The “Overview” page maybe just needs updated to show what comes by default? Like if you specify just
6.2.1.82-SNAPSHOT
, for example, you’re going to get jdk 21, tomcat 11, etc. The Overview now still says
Lucee 6.0.x - Tomcat 9.0 with Java 11 (recommended)
as the latest info, so no reference to 6.1, 6.2, etc.
q
z
Ok I'll see what I can do, constantly moving target, I think the existing language dates back to use 11 not 8