Env vars are missing in the built image #349
Replies: 3 comments 9 replies
-
How are you deploying this image? Can you share the command you're using to deploy this image? |
Beta Was this translation helpful? Give feedback.
-
The command I used is :
But shouldn't the |
Beta Was this translation helpful? Give feedback.
-
Thank you for all your answers. My expectations and assumptions where wrong. Yesterday when I started the discussion I saw a database connection error in the App Engine logs. It's a general error and happens in different situations including missing socket file. I checked the image locally and saw that the env vars are not set in the local container. I expected that env vars would be set when the image is build but this is not true. After all your suggestions and answers I have created a simple project and build an image. This image doesn't have the env vars but after it's deployed to App Engine they are set correctly. So my initial expectation was wrong and there is no problem with the evn vars after the image is deployed to App Engine. |
Beta Was this translation helpful? Give feedback.
-
I have tried to build an image for our app that should be deployed on App Engine. The following command is used to build the image:
The custom run image is because the default one is missing
libzip4
(but I don't believe this is important).The
app.yaml
file contains the following:The final image is build without any issues but the env vars are not set. Because of this the image is unusable when deployed on App Engine, because it can't connect to the DB.
The question is what I'm doing wrong and what to change, so the env vars are set properly?
Beta Was this translation helpful? Give feedback.
All reactions