http://coldfusion.com logo
a

Adam Brunt

06/23/2022, 3:04 PM
Hi all, please be kind to the newbie who is probably about to ask very newbie questions 🙂 I was pointed in this direction by the good folks in the Facebook CF Programmers group. I have a CF2016 application which I am trying to convert to run inside a Lucee Docker container [ with the long term goal to save on Adobe license costs and deploying in an Azure container environment - it's currently running on an Azure VM ]. It is has been recommended to me that Commandbox is the way to go but, whilst I am fairly up to speed with Docker and very up to speed with CF, my knowledge of Lucee and Commandbox is not so great. I have started doing some digging with the exisiting commandbox docker images and can get a empty Lucee container running without problems. I can also build a container running Lucy and containing my application code but when I try to access the app (in the container) I get errors which are presumably caused by all my CFAdmin settings not being setup in the container. Is anyone able to point me in the direction of some sort of step-by-step guide/hand-holding to get the app running in the container ? Once I know all the settings have been included in the docker image/container then I am fairly sure I can sort out any Lucee compatibility issues. Anyone able to help ?
m

Mark Takata (Adobe)

06/23/2022, 3:20 PM
* sends up the @bdw429s signal *
👍 1
b

bdw429s

06/23/2022, 4:03 PM
Lol, I'm at camp for the next week with no computers!
❤️ 1
@jclausen can assist, but most just start with the dockerhub readme for ortussolutions/commandbox
The CommandBox images all have CFConfig which is a tool that will load JSON based config
If you set profile to development in your server.json you can access the cf admin at the normal url.
You can use commandbox with cfconfig installed to extract settings from an existing server if you want.
@Adam Brunt
And any generic commandbox or cfconfig questions can also be asked in #box-products which has more people
a

Adam Brunt

06/23/2022, 4:47 PM
Thanks for all that @bdw429s - all very useful. I have got commandbox running and used cfconfig to get my app's CF settings exported to a .config.json file. I think the server.json stuff is still the missing piece. Time for more reading 😀
d

Daniel Mejia

06/23/2022, 4:48 PM
@Adam Brunt

https://www.youtube.com/watch?v=AYeuRWxK_6g

this is a great vid to learn why one would use Commandbox Servers, plus commandbox cli basics. https://cfcasts.com/series/webinars/videos/jon-on-containerizing-cfml-applications This free video on cfcasts.com is great vid to learny why one should use containers. And you already started reading the readme in dockerhub like Brad mentioned then you'll get the full guide with this video. https://hub.docker.com/r/ortussolutions/commandbox this is the readme on dockerhub. Read everything and make sure you understand warmed-up images. Warmed up images is what you want to end up with - see the section Optimizing Startup Times. I still don't use containers in production, but I do use commandbox servers and cfconfig. environment variables, server.json and cf admin settings was the trickiest part to get right when I was beginning. Let me just say that everything is in the docs. https://cfconfig.ortusbooks.com/ and https://commandbox.ortusbooks.com/ are the docs you'll need. Ask for help and guidance in #box-products channel.
👍 2
a

Adam Brunt

06/23/2022, 4:57 PM
@Daniel Mejia - I definitely get the impression that your last paragraph is definitely true 🙂 I get the impression that Docker is going to be the easy part 😄 Warmed up images are where the CF/Lucee instance is already up and running, right ?
b

bdw429s

06/23/2022, 5:00 PM
It's where the server has been started once so all the files are unpacked on disk and it will start up faster when the image deploys.
👍 2
d

Daniel Mejia

06/23/2022, 5:16 PM
Not sure if docker part is the easiest part - I still haven't been there. Plus I think when I was beginning my mindset was stuck on how things were done for 15 years that it was hard for me to make the paradigm shift. Now I look at my server setup and think its so easy and I can't believe I wasn't doing it earlier.
👍 1
a

Adam Brunt

06/24/2022, 7:43 AM

https://www.youtube.com/watch?v=AYeuRWxK_6g

is extremely useful 🙂 Got the cfcast one to go. Will take any Commandbox specfic questions to the box-products channel
👍🏾 1
2 Views