I've finally talked the powers that be to update t...
# docker
j
I've finally talked the powers that be to update to CF2021 and want to spin it up on my local system to see what breaks in our ancient application. I know 2021 is significantly different with the package manager. How does one set this up with Docker + Commandbox? Do I use the base image and then run cfpm command and build my own image? Or has @bdw429s already figured this out and has some snazzy way to do it? FWIW I have not read any docs (yet) LOL.
l
That's basically how I do it.
Copy code
FROM ortussolutions/commandbox:adobe2021-3.4.4
RUN /usr/local/lib/serverHome/WEB-INF/cfusion/bin/cfpm.sh install axis:2021.0.01.325996
RUN /usr/local/lib/serverHome/WEB-INF/cfusion/bin/cfpm.sh install caching:2021.0.01.325996
RUN /usr/local/lib/serverHome/WEB-INF/cfusion/bin/cfpm.sh install debugger:2021.0.0.323925
# etc
j
@Leon Miller-Out Thanks! That's what I was thinking it would look like - but looking at the Docker Commandbox docs I see @bdw429s does have a work around LOL •
CFPM_INSTALL
and
CFPM_UNINSTALL
- Supported for Adobe Coldfusion 2021 engines. When provided as a delimited list of Coldfusion Package Manager packages, these will be installed ( or uninstalled, respectively ), prior to the server start. A warmed-up server is required to use these variables.
l
Of course he does!
b
We can thank @jclausen or that šŸ™‚
j
Fudge searching I see there is a docker-commandbox channel - let me ask this over there šŸ™‚