Communicate between two containers in Google cloud build

后端 未结 3 1220
醉话见心
醉话见心 2021-02-04 08:20

I am running my CI/CD pipeline in Google cloud build. My app has web and wget containers. I am trying to reach web from wget<

3条回答
  •  无人及你
    2021-02-04 08:45

    I did an experiment and it looks like (without doing any special setup) you can communicate between build step containers by using the name step_x (0-based numbering).

    For example if you have a web-server listening on the endpoint /hello (on port 8081) in the container for the first build step (step_0). You can make requests to that endpoint from another build step container by making a request to http://step_0:8081/hello.

提交回复
热议问题