Anyone know how to get JDBC drivers working with C...
# box-products
j
Anyone know how to get JDBC drivers working with CommandBox "Light" ? The docs mention 'extensions'... but I'm not clear on what that is referring to?
Copy code
Task Runners or CLI automations in CommandBox light will also not be able to use things like JDBC drivers unless you install the extensions. 
Extensions can be installed by placing them in the CLI's server context deploy folder and waiting a minute.
Hmm. I think it's Lucee extensions. Let me try this and if it works I'll update the docs.
b
Yes, the "extensions" referenced in that paragraph are "lucee extensions".
You can see what lucee extensions are installed i the CLI as well by running something like this from the console
Copy code
#extensionlist | printtable id,version,name
You can also use env variables to install extensions, but that only happens when the CLI is starting
@Jim Priest
👍 1
j
Yeah for now I just build my own image using 'normal' commandbox. Will go back and revisit this when I have time to see if I can get it working with minibox
b
@Jim Priest That really sounds like more work. All you need to do is set an env var and you're golden
Should just be something like this
Copy code
ENV LUCEE_EXTENSIONS=99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6,37C61C0A-5D7E-4256-8572639BE0CF5838
❤️ 1
That's out of a docker file I'm using with minibox
It installs mssql and esapi extensions
Here's an example of doing it with docker run without even touching a docker file
Copy code
docker run -e LUCEE_EXTENSIONS=37C61C0A-5D7E-4256-8572639BE0CF5838 foundeo/minibox box info
👍 1
j
I've got this new image working and will try this env+minibox again tomorrow.
LOL yeah that was much easier 🙂
b
Nice trick. I always just use box.json dependencies and scripts.