-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Temurin images based on Debian #301
Comments
When I say it is easy, I meant that for end users to go ahead and build their own. :-) |
It's not easy for me as an end user to build and maintain my own Tomcat image based on Debian, since there is a lot of added complexity by the Tomcat Dockerfile that may not be compatible with Debian. This is the case for many images that use Temurin in their parent chain. While Adoptium afaik never provided Debian base images Tomcat did in fact do so for Java 11/17 until recently, hence my request here. |
Your best bet is either get a vendor who provides commercial support for Tomcat, and as value add provides container images, or build your own as I said before. One company I know of that provides commercial support for Tomcat is Tomitribe. There may be others. |
See #299, where my concerns definitely very strongly mirror Bruno's closing paragraph in the comment you linked: 😅 ❤️
(The very specific combination you've requested is not represented in #299, but the overall problem of doing so most certainly is.) |
It's not perfect (in fact, it could probably be shorter), but here's a basic example that should mostly work given the proximity between Ubuntu Jammy and Debian Bookworm, and even includes Tomcat Native: FROM tomcat:10-jre11-temurin-jammy AS tomcat
FROM debian:bookworm-slim
# TODO wouldn't it be neat if we could "COPY --from" an environment variable? 🤔
ENV JAVA_HOME /opt/java/openjdk
COPY --from=tomcat $JAVA_HOME $JAVA_HOME
ENV CATALINA_HOME /usr/local/tomcat
COPY --from=tomcat $CATALINA_HOME $CATALINA_HOME
ENV PATH="${CATALINA_HOME}/bin:${JAVA_HOME}/bin:${PATH}"
ENV TOMCAT_NATIVE_LIBDIR $CATALINA_HOME/native-jni-lib
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOMCAT_NATIVE_LIBDIR
RUN set -eux; \
apt-get update; \
xargs -rt apt-get install -y --no-install-recommends < "$TOMCAT_NATIVE_LIBDIR/.dependencies.txt"; \
rm -rf /var/lib/apt/lists/*
CMD ["catalina.sh", "run"] |
@tianon you closed as Completed. Was there any work associated with this issue? |
I'm not sure I understand 😅 This isn't something we plan to action on, as discussed above (I just don't use GitHub's "close reasons" much because it being a simple "completed" vs "not planned" binary doesn't really convey much more accurately than the closed status already does in most cases). The sample |
Tomcat Temurin images are all based on Ubuntu. Since there are no OpenJDK 11/17 images anymore (see docker-library/openjdk#495), we have to switch to Temurin images, thus also forcing us to switch base from Debian to Ubuntu.
I'm aware that Adoptium doesn't provide images based on Debian. Yet according to adoptium/containers#99 (comment) from @brunoborges it should be easily possible to build Tomcat Temurin images based on Debian. Could you consider doing so?
The text was updated successfully, but these errors were encountered: