app.yaml to send params to Dockerfile

48 views
Skip to first unread message

Seungryul Choi

unread,
Oct 20, 2016, 4:07:45 PM10/20/16
to Google App Engine

Hi,


I am deploying a binary on Google cloud flexible app engine for two different services. So I have {app-service1.yaml, Dockerfile-service1} and {app-service2.yaml, Dockerfile-service2}. And use "gcloud app deploy" command to deploy them.


Is it possible to send a param from app-service[1|2].yaml to a single Dockerfile, so that I can maintain only one Dockerfile?


I tried two things but they didn't work with "gcloud deploy" command:

  • "entrypoint:" in app.yaml -- It does not override what is set in CMD in Dockerfile.
  • "env_variables:" in app.yaml -- Dockerfile's ENV or ARG do not see any variables defined in env_variables:.
I was hoping that gcloud command can send environment variables to a container, but any method of sending parameters to a container would be very useful to me.

Thanks.

Adam (Cloud Platform Support)

unread,
Oct 22, 2016, 3:05:00 PM10/22/16
to Google App Engine
This functionality doesn't exist, but you could file a feature request on the google-cloud-sdk issue tracker.
Reply all
Reply to author
Forward
0 new messages