I'm trying to setup commandbox light via Docker us...
# box-products
j
I'm trying to setup commandbox light via Docker using the Lucee docker image (debian-based). I'm feeling a bit out of my element, unable to get it working. What is meant by the box binary? I tried unpacking the
box-light
to
usr/local/bin
so I can run box commands (like
box install commandbox-migrations
) but
box
command isn't found. I'm definitely missing something, just don't know what 🤔 Here's what I have so far in the Dockerfile: RUN wget https://s3.amazonaws.com/downloads.ortussolutions.com/ortussolutions/commandbox/5.5.2/box-light RUN jar xvf box-light RUN mv box-light /usr/local/bin/box-light
b
@Jason Ryan I would recommend using
foundeo/minibox
it is a very small, lightweight image with CommandBox light/Lucee light already installed
But if your goal is to start servers, is there a particular reason you're avoiding the
ortussolutions/commandbox
image as it already comes with most everything you need.
j
Good call Brad! I was trying to keep it super minimal (due to the vulnerabilities that we're finding noted in the other thread). We use commandbox exclusively for
cfconfig
,
cfmigrations
, and
dotenv
I figured that I could just add any of the extensions manually
b
I don't know for sure, but I would expect the XML jars to be required by the Lucee core.
So I'm not sure even Lucee Light will help you there
j
😧
b
I mean, it's worth a try, but I wouldn't hold your breath
Regarding your error above, you obviously need to rename the
box-light
file to be called
box
It's just named that on the download server so it's clear what you're downloading
j
Ohhh that makes a lot of sense. Is the unpacking even necessary?
b
No, in fact unpacking will likely just break stuff, lol
Unless it's in a tar or a zip file
j
Haha that makes sense. 😆
b
If you're downloading the actual binary, just use it
j
Sweet, I'll give it a try. You're always so helpful man I appreciate it!
b
I'm looking to release CommandBox 5.6.0 today BTW
Just crazy busy, lol
j
Oooh how exciting! Definitely been wanting to give the commandbox images a try. Just been afraid to spend too much time re-configuring our whole setup 😛
Enjoy the long weekend!
b
You'll save time in the long run 🙂
I'm heading out to Houston for Into The Box so it will be a fun week ahead of me
But in the mean time, I have 3 sessions, a full day workshop, and a keynote spot to prepare for 😳
j
Yeah you're probably right. Damn! That's no joke. Love it. I don't know how you do it all, color me impressed