I wrote a new blog post about adding extensions to...
# lucee
m
I wrote a new blog post about adding extensions to lucee in your docker image, hopefully someone will find it useful: https://markdrew.io/lucee-extensions-in-docker-images
s
FWIW,
LUCEE_EXTENSIONS
does include version info, e.g.
Copy code
ARG LUCEE_EXTENSIONS="\
CED6227E-0F49-6367-A68D21AACA6B07E8;name=Lucee Administrator;version=1.0.0.3,\
17AB52DE-B300-A94B-E058BD978511E39E;name=S3 Resource Extension;version=2.0.0.93-RC,\
etc
b
I feel silly that I had no clue ADD could target a URL like that
s
only drawback is that it relies on your build environment's ability to reach the lucee extension provider, but it's easy to manage otherwise
b
I'm curious... are you (or anyone not using CommandBox in docker) actively avoiding CommandBox (maybe just to show how it's done without it)? It seems like nearly everything in that dockerfile could be removed if the app was using box.json, server.json and cfconfig. Your original article kicked off with "Making slimmer Lucee Docker Images" but it seems like the image itself would be smaller with CommandBox (because nearly all of the layers in your dockerfile would not need to exist). I guess the resulting CONTAINER would be smaller but I wouldn't think the image would be (right??).
m
I dont think the image would be smaller, I am not avoiding commandbox (I use it daily, and the docker images from Ortus), but I am trying to remove the number of layers between the user and lucee in my blog posts. In a way to show how to do it out of the box (pun intended)
b
In a way to show how to do it out of the box
Gotcha. I figured but just wanted to make sure I wasn't missing out on an advantage I did just mean avoiding it in this particular set of posts ( I know you DO actually use it 😉 )
Thanks for sharing. ADD with URLs is going to change my life.
m
I did link that there is some discussion about their pro's and cons. I think not having to install curl or wget is a good one 🙂
👍 1
I did just mean avoiding it in this particular set of posts ( I know you DO actually use it 😉 )
Cool, yeah, I dont have to sing Ortus' praise ALL the time 🙂 I contribute to cfconfig as it is 🙂
f
Thanks for sharing Mark — somehow your blog was not on my radar 🤯 I’ll be including this in this weeks CFBreak newsletter
m
Thank you so much Peter! I haven't been writing for a long time so I don't blame you! Been on stealth mode for a long while!