Using Docker compose within Google App Engine

后端 未结 2 1177
感情败类
感情败类 2021-01-11 17:17

I am currently experimenting with the Google App Engine flexible environment, especially the feature allowing you to build custom runtimes by providing a Do

2条回答
  •  醉梦人生
    2021-01-11 17:59

    You can follow following steps to create a container with docker-compose file in Google App Engine. Follow link

    1. You can build your custom image using docker-compose file

      docker-compose build

    2. Create a tag for local build

      docker tag [SOURCE_IMAGE] [HOSTNAME]/[PROJECT-ID]/[IMAGE]

    3. Push image to google registry

      docker push [HOSTNAME]/[PROJECT-ID]/[IMAGE]

    4. deploy Container

      gcloud app deploy --image-url=[HOSTNAME]/[PROJECT-ID]/[IMAGE]

    please add auth for docker commands to run.

提交回复
热议问题