Using docker-compose with CI - how to deal with exit codes and daemonized linked containers?

后端 未结 9 1251
故里飘歌
故里飘歌 2020-12-07 11:45

Right now our Jenkins agents generate a docker-compose.yml for each of our Rails projects and then run docker-compose up. The docker-compose.yml has a main \"web\" container

9条回答
  •  广开言路
    2020-12-07 12:05

    Since version 1.12.0, you can use the --exit-code-from option.

    From documentation:

    --exit-code-from SERVICE

    Return the exit code of the selected service container. Implies --abort-on-container-exit.

提交回复
热议问题