Starting up Docker containers as part of the build

As we have seen, it's really easy to spin up and shut down Docker containers. Wouldn't it be useful if we could do that as part of a build?

In a perfect world, our build process would build our application and then install it in a Docker container. We would then be able to run tests against this container, and if everything worked as expected, we could publish the container in a private Docker registry. We could then take this Docker container and pass it through our promotional model until it hits live. We then would have something in live that is identical to the container that we originally built and tested. Thus, we would know that it works. If we have any problems with it in live, we ...

Get Mastering Selenium WebDriver 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.