Containerizing and testing the wiki application

We will continue to build on our success as we create a Java 7 container to run our wiki using Tomcat. Before we install the Java application and Tomcat server, we create an empty Java container and use it to connect and test the Postgres DB backend. 

First, we need to select an appropriate base image for our Java 7 container. Our journey takes us back to hub.docker.com where we search for (https://hub.docker.com/search?q=java&type=image&image_filter=official&category=base) and find Docker's official Java image. We click on the Java repo, select the Tags tab, and look for the tag associated with the Java version 7 JDK.

There we find the java:7-JDK image as our starting point. Now we will add ...

Get Mastering Docker Enterprise 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.