:wave: Hi everyone! I didn't realize you guys were...
# cfml-general
a
👋 Hi everyone! I didn't realize you guys were here! I am having problems with a docker image using Google Cloud Build and a docker container run using Google Cloud Run. I am having an issue getting the .car files to copy when the container is spinning up. Is there anyone that has had a similar problem or have any recommendations for getting the file to copy?
a
This is the same issue you raised on Stack Overflow, right? (https://stackoverflow.com/q/78684026/894061) Probs best to mention that sorta thing when you re-ask a Q. (I had a look and didn't know what the story was, soz)
a
Thanks Adam! New to this slack channel and wasn't sure of protocol. And yes, that is my stackoverflow post. Didn't think about posting that too... Thanks for the assist 🙂
a
Haha, no worries and no real "protocol". Just share whatever inf you've got up front. TBH I reckon putting the deets on stack overflow & cross-reffing to here is a good approach!
a
Agreed! Thanks again!
j
Your compose file references paths for both the MySQL connector and the settings.car file that are different than your Dockerfile. I would add some debug code in your build to make sure those are in the path specified in your Dockerfile.
a
thanks Jon! The compose file exists one level below the "coldfusion" folder while the Dockerfile exists in the "coldfusion" folder.
a
Am reasonably sure docker will barf if it cant find files. Path refs in Dockerfile & compose files won't necessarily be the same anyhow. They're used at different times for different things.
j
Yes. I can see that
./coldfusion
is the context root in the
docker build
command now, so that should match the compose file. Here’s a thought: I’m not sure of the specifics of GCP, but are you using git LFS and and does LFS handle the
.car
and
jar
extensions. If so, the files Google Cloud has might be LFS pointers, rather than the actual files?
a
Thanks Jon, I am not using git LFS but there could be something to that. The .car file itself is only 7KB and the mysql driver is around 2.5MB