Setting up the Tomcat 8.x as a container service

The following steps can be used to set up Tomcat 8.x along with Java 8 and Maven 3.x as one container:

  1. Create a folder, and put the following files within the folder. The source code for the files will be given as follows:
    • tomcat.df
  2. Copy the following source code for tomcat.df:
 FROM phusion/baseimage:0.9.17 RUN echo "deb trusty main universe" > /etc/apt/sources.list RUN apt-get -y update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-software-properties software-properties-common ENV JAVA_VER 8 ENV JAVA_HOME /usr/lib/jvm/java-8-oracle RUN echo 'deb trusty ...

Get Building Web Apps with Spring 5 and Angular 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.