Testing and building the application using Docker Compose

In the previous section, you used Docker commands to perform the following tasks:

  • Build a test image
  • Run tests
  • Build a release image
  • Run the application

Each time we ran a Docker command, we had to supply quite a bit of configuration, and trying to remember the various commands that you need to run is already starting to become difficult. In addition to this, we also discovered that to start the release image for the application, we need to have an operational external database.  For local testing use cases, running an external database in another container is an excellent approach, but having to orchestrate this by running a series of Docker commands with lots of different input ...

Get Docker on Amazon Web Services 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.