Skip to content

web-servers/tomcat-s2i

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomcat - Source-to-Image Builder

This repository provides a CentOS-based Docker image that enables Source-to-Image (S2I) building for Tomcat. It builds the sources of your webapp and deploys it to a fully functional containerized Tomcat Server. The generated image can then easily be run locally or deployed to your Openshift Server.

Build the Image

You can build the Tomcat-S2I Docker image by cloning the present repository and running docker build:

$ docker build . -t [IMAGE_BUILDER_TAG]

Where [IMAGE_BUILDER_TAG] is the tag you would like to assign to the tomcat-s2i image builder.

Usage

To use the provided image, you'll first need to install Openshift S2I. Then simply run the following command:

$ s2i build [SOURCE_URL] [IMAGE_BUILDER_TAG] [IMAGE_TAG]

Where [SOURCE_URL] is either the URL to your Git repository or the path to your local sources and [IMAGE_TAG] is simply the tag you would like to assign to the generated image.

Once built, you can run it locally:

$ docker run -p 8080:8080 [IMAGE_TAG]

Or push it to a Docker Registry for further use on your Openshift Server:

$ docker push [IMAGE_TAG]

About

Source-to-Image for Tomcat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published