Anyone successfully build CF2021 with Docker on a ...
# docker
j
Anyone successfully build CF2021 with Docker on a Mac M1? I've got a CF2018 container which runs fine on Linux, Mac Intel and Mac M1. New CF2021 container is running Debian Bullseye and Java 11 and we're using the zip installer. I've simply tweaked the 2018 dockerfile and related scripts to use CF2021 instead with some additions for cfpm. This runs fine on Linux and Mac Intel but on the M1 chip it constantly, and randomly fails... usually when starting/stopping CF initially or during the installations of packages. I've had 2 co-workers try it and I just commandeered my daughters M1 and see the same thing. 😕
p
Soo what kind of errors? What does your docker file look like? I have run nearly all versions on my M1
j
Dockerfile is fairly generic - using Debian Bullseye image. We install Java 11.0.19 from Adobe's downloads... then we call this cfinstall.sh script: https://gist.github.com/jimpriest/a714d145afb9c4ede6fc35706245557e I've added a bunch of sleeps in here which seems to have helped it get past the initial CF install - now it's hanging in CFPM...
It either hangs
Copy code
#11 185.4 Downloading the dependent package rome-cf-1.0.jar
#11 185.8 Downloading the package graph-2021.0.05.330109.jar
#11 186.2 Downloading the dependent package chart-2.9.jar
#11 186.7 Downloading the package ajax-2021.0.05.330109.jar
#11 187.0 Downloading the package ajax-2021.0.05.330109.zip
#11 196.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server update installation is successful.
#11 271.9 Waiting for the server to restart and the packages to be installed. Do not close this window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Or I get a cfpm error:
Copy code
#11 342.2 mysql package has been installed by the server.
#11 342.2 mail package has been installed by the server.
#11 342.2 feed package has been installed by the server.
#11 342.2 chart package has been installed by the server.
#11 342.2 ajax package has been installed by the server.
#11 342.3 /opt/ColdFusion/cfusion/bin/cfpm.sh: line 18: unexpected EOF while looking for matching `"'
#11 342.3 /opt/ColdFusion/cfusion/bin/cfpm.sh: line 19: syntax error: unexpected end of file
Same file will build on my Linux laptop in about 5 minutes
p
is the error occurring just for a particular one of the packages? or to spin up in general?
j
Spin up in general. Before I put the sleeps in it would randomly hang when starting and stopping CF. Also hung up when installing the hotfix so I commented that out... Then got the same thing in the package manager. Just very weird esp when I see none of that behavior in Linux or Mac Intel.
Also weird that 2018 works on M1. 🤷 I dunno LOL Monday I'll take a stab and build things from scratch and make it as simple as I can and see if I can make it work.
p
hmm I was able to spin up on commandbox adobe@2018 just fine...
start cfengine=adobe@2018
j
Ah - we're not using CommandBox but that is an option...
l
We’ve also had no trouble with CommandBox and ACF2021 in Docker on M1
p
Roll with Commandbox, it so much easier 🙂
j
Yep. I'm usually the first one to say "Use CommandBox" but was just hoping to leverage what we had 🙂 Will see if I can cobble together something with CommandBox and maybe Apache (we have a lot of rewrites). Thanks all!