First we need to create a keystore, and give changeit as its password.
If we want to create an HTTPS application, then there will be some modification needed. RUN sed -i 's/endorsed/e/g' /deployments/apache-tomcat-8.0.5/bin/catalina.shĬOPY HelloWorld.war /deployments/apache-tomcat-8.0.5/webapps/HelloWorld.warĬMD ĭocker run -p 8080:8080 ubi8-with-tomcat8 # remove it manually, otherwise it will create an error "Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules" & tar -xf "/tmp/apache-tomcat-8.0.5.tar.gz" -C /deployments/ There are 100s of companies including eBay, Alibaba, and MIT using it. It is the most popular application server used with Java web applications. RUN curl -k -L -o "/tmp/apache-tomcat-8.0.5.tar.gz" \ Apache Tomcat is an open-source web server and servlet container for running Java applications.
Apache tomcat 8 tutorial install#
So, lets start with a simple java application,Ĭreate a Dockerfile to install Apache Tomcat 8 and copy our created war file into Tomcat’s webapps folderįROM /ubi8/openjdk-11 And after that, i’ll deploy a simple hello world java application on top of Tomcat 8. On this sample, im trying to create a Apache Tomcat 8 (version 8.0.5 to be precise), and deploy it on top on a UBI8 base image, with JDK 11 installed on it. UBI images can be obtained from the Red Hat container catalog, and be built and deployed anywhere. Like previous base images, they are built from portions of Red Hat Enterprise Linux. UBI (Universal Base Image) 8 is an OCI-compliant container base operating system images with complementary runtime languages and packages that are freely redistributable.