docker-library / tomcat

Docker Official Image packaging for Apache Tomcat
https://tomcat.apache.org
Apache License 2.0
618 stars 747 forks source link

Tomcat for windows containers? #66

Open jparasha opened 7 years ago

jparasha commented 7 years ago

Trying to write docker file to download Tomcat for windows containers. Unfortunately, openJDK too is not available for Windows containers. Anyone, has created image for windows containers or can give insights on the issue? Thanks.

burhanuddinbrf commented 7 years ago

https://github.com/burhanuddinbrf/Tomcat-on-windows-container.git

yosifkit commented 7 years ago

We do have jdk 8 images based on microsoft/windowsservercore (openjdk:8-jdk-windowsservercore) and microsoft/nanoserver (openjdk:8-jdk-nanoserver). They were merged in https://github.com/docker-library/openjdk/pull/88 and pushed to the Docker Hub with https://github.com/docker-library/official-images/pull/26. It should be possible to install tomcat on top of one or both of those.

burhanuddinbrf commented 7 years ago

Yes you are right but most enterprise applications prefer oracle jdk rather than open-jdk .

tianon commented 7 years ago

Due to licensing, the official images cannot include Oracle's Java. The best we can do is OpenJDK, which is what the Linux variants of this repo are already based on. If we add Windows variants, they will be consistent with that.

burhanuddinbrf commented 7 years ago

the idea was to install tomcat using chocolatey on the container.

jparasha commented 7 years ago

@yosifkit Yes finally , we have openJDK for windows. Though, it may now be possible to add Tomcat on top of it, still an official Tomcat image for windows will always be preferred and trusted by enterprises. Hope we get that support soon as well :-)

@burhanuddinbrf Your contribution is great and does the job well. But, I will wait for official image as this is what being expected by client. Still, thanks for the suggestion. cheers!

Babu2000 commented 7 years ago

@burhanuddinbrf i have build tomcat image with your docker file with out any issues. i have ran container with tomcat image then container is exiting immediately. tomcat is not running.

Babu2000 commented 7 years ago

jparasha Have you changed anything docker file?

tianon commented 7 years ago

Can you please move your discussion of that Docker image to an issue on its repo instead of this one? Thanks 👍