Skip to content

ViralAgency/docker-tomcat10-Java17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomcat 10.1.10 - OpenJDK 17 Docker

This repository was created with the for solve the problem of deploying .war packages on a docker environment. Yes, there are many versions available on Docker, ready to be used, but as often happens in Java, sometimes you need to work on specific and custom versions.

This repository offers a quick solution to this problem.


Installation

  1. On Dockerfile, insert the java version of your environment:

    Example:

    RUN apk add openjdk17-jre curl bash

Some versions available here.

  1. On /conf/tomcat.service, replace with your java version path:

    Example:

    Environment="JAVA_HOME=/usr/lib/jvm/YOUR-JAVA-PATH"

  2. On docker-compose.yml file set your .war source and destination paths:

    Example:

    - ./LOCAL-FILE.war:/opt/tomcat/webapps/CONTAINER-FILE.war

  3. Start the environment and check logs:

    docker compose up

About

Docker environment with Tomcat 10 and Java 17

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published