Having a app.yaml similar to this
runtime: php
env: flex
runtime_config:
document_root: Web
whitelist_functions: exec
env_variables:
DATABASE_DSN: 'DSN'
DATABASE_CREDENTIALS_USER: 'USER'
DATABASE_CREDENTIALS_PASSWORD: 'PASSWORD'
beta_settings:
cloud_sql_instances: INSTANCE_NAME
and after i deploy with the command
gcloud app deploy app.yaml
After deployment I enable debug on one of the instances, and login via SSH.
Via the docker CLI i can open the container containing the application
code, but the ENV vars are not transferred/passed on to the container, so
my application can't connect to the Cloud SQL service. If I enter the
credentials manually in a interactive PHP shell, the connection is created.
Inside a instance i have the following containers running, created by the
gcloud deployment, based on the app.yaml
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES39bcf36df191
eu.gcr.io/project/appengine/default.20170920t100932@sha256:ae8ce69ffe994d200d889c5e30bd48a2d5642e2e1d0632bc351e83a8fd6fef96
"/usr/bin/supervisord" 2 hours ago Up 2 hours 172.17.0.1:8080->8080/tcp
gaeapp8c60858d1ef4 gcr.io/google_appengine/cloud-sql-proxy
"/cloud_sql_proxy -di" 2 hours ago Up 2 hours gigantic_paref520dd07173a
gcr.io/google_appengine/api-proxy "/proxy" 2 hours ago Up 2 hours
api2bd7417c099b gcr.io/google_appengine/nginx-proxy "/var/lib/nginx/bin/s"
2 hours ago Up 2 hours 8080/tcp, 8090/tcp, 0.0.0.0:8443->8443/tcp
nginx_proxy7526979828d6 gcr.io/google_appengine/fluentd-logger
"/opt/google-fluentd/" 2 hours ago Up 2 hours fluentd_logger
I acces the top container (gaeapp) and use `printenv` to see the available
environment variables.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/c604b2fd-b5e8-452c-899e-3ef1b7049c21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.