Is there a preferred way to install the dependenci...
# box-products
b
Is there a preferred way to install the dependencies from box.json when a Docker container starts? I'm not seeing anything obvious in the documentation. The output during startup says "No dependencies found to install", so it's looking for something.
b
It's in the docs under "environment variables" https://hub.docker.com/r/ortussolutions/commandbox/
Scroll down to
BOX_INSTALL
Now, if it's running, but not finding your
box.json
or something, then that's another issue
Also note, this env var would only be for when you are just using a stock image with your code mapped in for a quick container. if you're building your own docker images with your own docker file that is
FROM
one of our images, then you'd just do a normal
Copy code
RUN box install
as part of building the images and your dependencies would be baked in.
@bockensm
b
BOX_INSTALL was what I needed
I was looking on gitbooks for something. Never thought to look at docker hub 😕
b
I don't think we have a gitbook for the docker iamges
It's just in the readme of the git repo, which gets published on docker hub as well
b
I was referring to the CommandBox gitbook
b
Oh, the CommandBox docs don't have anything to do with our Docker images
The docker images are their own separate project that are built around CommandBox
So conventions like box_install env vars aren't part of CommandBox proper, it's just something the docker startup script does