:wave: Hi everyone! I am having problems with a do...
# adobe
a
👋 Hi everyone! 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? Here is a link to the stack overflow with more details: https://stackoverflow.com/q/78684026/894061
p
Is it not copying into that container for sure, or is it just not loading the car settings you want?
Also, are you using a .gitignore file that is ignoring CAR files by chance? @Angela Jones
a
Thanks for the reply Patrick. It's just not loading the .car file/settings. I can go to a .cfm page and it will display a dump of app vars, session vars, etc. but the datasources are not being imported so if I try to run a query it errors out as datasource not found.
p
Do you have a .gitignore in your code base you are building the google build with?
and is that CAR file type excluded?
a
Sorry - It is not git ignored and I made sure that it exists in the git repository, but that sparked an idea about it possibly being a .dockerignore that I saw in the file structure.
I'm looking into that now. I'll keep you updated. If you have any other thoughts on what the problem could be, I'd love to hear. Thanks so much for the assist 🙂
p
Where I was going with this is, that if you are NOT utilizing the
.gcloudignore
but only have a
.gitignore
then those rules are picked up and used by default as the google ignore….so you should also look at what all the
.gcloudignore
needs to have to operate. And yes check your Dockerignore as well.
Could be that the local file is being left out since its not in the
.gcloudignore
as a
--ignore-file
which would allow it to get there
and can you also verify by hopping into the docker container and verifying if the CAR file does or doesnt exist; to verify if its not just a config problem
a
I'll look into the .gcloudignore, I don't believe we have that implemented. When I run the docker_compose.yaml locally it builds fine. When I'm trying to run it on Google is when the issue arises and you, unfortunately, cannot view the docker files in the container through the Google.
p
Yea but your problem resides with Google Cloud building….diff than local builds
you dont have direct CLI access to your docker containers???
You cant just run
docker exec -it mycontainer /bin/bash
or swap ending there for
/bin/sh
a
I primarily use the GCP interface when dealing with this remotely. But I assume there is. Just to let you know I am very new to GCP and docker. I am a lowly programmer tasked with doing something that is out of my depth. I have overcome every obstacle to get this darn thing working and this is just the last piece of this puzzle. Sorry - just super frustrated 😞
Mostly I only use the command line when I'm working locally. I didn't really consider accessing it remotely from the command line.
p
Ahh yea, well I am open to consulting if you need deeper assistance into resolving the problem. Full docker and any cloud provider consultant here.
ping me on a direct message if interested
a
Definitely! I've got this thread pinned and will dm you.