Sign inSign up

opavlova/tomcat

By opavlova

•Updated almost 3 years ago

Tomcat Servers for deploying applications in IntelliJ IDEA

Image
0

2.2K

opavlova/tomcat repository overview

⁠Tomcat

Base docker image to run a Tomcat application server with jre7 or jre8.

⁠Image tags

opavlova/tomcat:9-jre8             TOMCAT_VERSION 9.0.0.M9
opavlova/tomcat:8v5-jre8           TOMCAT_VERSION 8.5.4
opavlova/tomcat:8-jre8             TOMCAT_VERSION 8.0.36
opavlova/tomcat:8-jre7             TOMCAT_VERSION 8.0.36
opavlova/tomcat:7-jre8             TOMCAT_VERSION 7.0.70
opavlova/tomcat:7-jre7             TOMCAT_VERSION 7.0.70
opavlova/tomcat:6-jre8             TOMCAT_VERSION 6.0.45
opavlova/tomcat:6-jre7             TOMCAT_VERSION 6.0.45
opavlova/tomcat                    TOMCAT_VERSION 6.0.45, jre8

⁠Usage

⁠Deploy an application in Intellij IDEA 2020.3 with a Dockerfile:
  1. Create HelloDocker.war file and place it to the same directory where will be the corresponding Dockerfile

  2. Create this Dockerfile:

FROM opavlova/tomcat:6-jre7
ADD HelloDocker.war $CATALINA_HOME/webapps/
  1. Create and run a New Run Configuration

    click on the "Run on Docker' gutter (near "FROM" in the Editor)  -> choose "New Run Configuration"
    enter "-p 18080:8080"   into the  "Run options" field 
    enter an image/container name if needed
    Run  ( results are in the Services View )
    
  2. Go to the corresponding url with the deployed artifact http://localhost:18080/HelloDocker/⁠

⁠Deploy an application in Intellij IDEA 2020.3 with an image:
  1. Go to the Services View
  2. Connect to Docker
  3. Pull the image Select "Images" item Enter "opavlova/tomcat"
    Press ctrl+click to pull the image
  4. Run a container Select the pulled image in the list of images->Call context menu->Create Container Enter into the "Run options" field in the opened Docker Run Configuration -p 18080:8080 -v "/c/Users/opavlova/IdeaProjects/HelloDocker/out/":/usr/local/tomcat/webapps/
    where port binding: "-p :" and volume binding: "-v :" Run
  5. Go to the deployed application, in our case http://localhost:18080/HelloDocker/⁠

Tag summary

Content type

Image

Digest

Size

130.9 MB

Last updated

almost 7 years ago

docker pull opavlova/tomcat