The following steps can be used to set up Tomcat 8.x along with Java 8 and Maven 3.x as one container:
- Create a folder, and put the following files within the folder. The source code for the files will be given as follows:
- tomcat.df
- create_tomcat_admin_user.sh
- run.sh
- Copy the following source code for tomcat.df:
FROM phusion/baseimage:0.9.17 RUN echo "deb http://archive.ubuntu.com/ubuntu 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 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty ...