Lemuel Nabong Lemuel Nabong -3 years ago 103
React JSX Question

In which branch should I build a docker image?

We have a react project that is based on react-static-boilerplate which will follow git DMZ flow and will make use of docker images.


  1. Does the build in git dmz flow pertains to yarn build?

  2. Since master and hotfix are deployed in production and release branch is where manual testing is done, does it mean that this is where I should trigger a docker build?



Git DMZ Flwo

Answer Source

This depends on the tradeoffs you want to make. In ideal world, you would want to automate a docker build for every branch for testing. If that takes too much time, then you might want to design a base image to start with.

Still, there is nothing wrong ignoring docker but let build without it. At that point, you would take more responsibility at master branch build.

Docker is simply there for pushing system configuration efforts to the developer but you can make best of the both worlds by providing a good base image and building for every branch. Even you do it from scratch, Docker's internal caching will save you acceptable amount of time in the same testing environment.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download