I have Lucee running in a Docker Container (extending from commandbox container).
Because our container is extending Commandbox on docker, we are able to set things like Port, URL Rewrites etc via server.json (Thank you Ortus Solutions and Brad !!).
The problem is we can’t find a way of setting this in our Dockerized App. We’ve explored CFConfig (thanks again Ortus !! ), but there doesn’t appear to be a setting in CFConfig for Key case.
Does anyone have any suggestions on how we can set Key case to “Preserve Case” in a Dockerized Lucee App?
Thanks in advance for any suggestions
When we create our Docker images, they’re set to run a script file to ‘warm up the server’ and run an initial healthcheck that then sets all the configuration settings. So if it’s not configurable via CFConfig, you could consider that…
Thanks Jedihomer. Are you able to elaborate on “run a script”. What sort of script is it? Are you aware of any documentation on this?
Similar to how the official lucee images work… (https://github.com/lucee/lucee-dockerfiles/tree/master/5.2)
In the Dockerfile we add a .sh file which starts lucee and runs a curl to our healthcheck. Similar to
A little further down we run this file.
In the healthcheck app we have calls to the
cfadmin tag setting everthing to UTF, UTC and other settings before stopping lucee.
The Dockerfile completes and we have now have an image with a mostly configured server.
The final things that are setup are when the image runs in production and DSN settings are passed in via environmentals etc.
I would suggest that:
a) you add a ticket to cfconfig for it. I would probably get to it soon as I cfconfig and would use it or even add the feature
b) Check out this spreadsheet of Lucee Settings that can be modified via environment variables: https://docs.google.com/spreadsheets/d/10s-nn_FsoSD_RiLwjYZICacCoC386SjkEGT3pOfBJVU/edit#gid=0
That might help
AS an update, just had a look and it has been setup:
so you would just have to add the following line I guess:
Brilliant! Thanks guys… gives me some things to play around with. Cheers!