tomcat
                                
                                 tomcat copied to clipboard
                                
                                    tomcat copied to clipboard
                            
                            
                            
                        Introduce Tomcat Source-to-Image (S2I)
Tomcat - Source-to-Image (S2I)
This resource provides a CentOS-based Docker image that enables Source-to-Image building for Tomcat. It builds the sources of a webapp and deploys it to a fully functional containerized Tomcat Server. The generated image can then easily be run locally or deployed to a Kubernetes-based Server.
Usage
- Build an image:
$ s2i build [SOURCE_URL] tomcat-s2i my-webapp-image
Where [SOURCE_URL] is either the URL to a Git repository or a path to local sources.
- Run it:
$ docker run -p 8080:8080 my-webapp-image
I am against pulling this one for several reasons:
- This is CentOS-specific and OpenShift
- Someone has to maintain it, likely none of us won't
- It duplicates several configuration files
This is best handled by the community or by Red Hat ($$$)
Actually using Alpine like in res/tomcat-maven/Dockerfile might be a good idea. The tool to build the image is independent of Openshift and the image will run in Kubernetes too.
Yes, switching to Alpine is definitely possible. I can update the PR if needed.