Red Hat Bugzilla – Bug 1471893
[RFE] Tomcat exact version in label for jboss-webserver-3/webserver31-tomcat7-openshift image
Last modified: 2018-01-25 17:00:33 EST
Description of problem:
Could you please attach to the image label which shows the exact version of Tomcat7, which is included in image?
Customer can't see the version unless running the image. Then it is visible in logs.
This info is useful for production planning.
Version-Release number of selected component (if applicable):
OpenShift Container Platfrom 3.5
The information is present in the images through their environment variables, it should be possible to query this from the command line.
docker inspect registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift | egrep 'PRODUCT_VERSION|JBOSS_WEBSERVER_VERSION'
would result in
P.S. All the xPaaS images should contain PRODUCT_VERSION but the other variable will differ depending on the product, e.g. the eap variable would be JBOSS_EAP_VERSION.
Apologies, I've just realised you were asking about the Tomcat version, not the actual product version. I'll see what can be done about this.
While we look into this issue you could advise them to do the following as a workaround.
docker run -it --rm registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift java -cp /opt/webserver/lib/catalina.jar org.apache.catalina.util.ServerInfo
This will display output similar to the following
Server version: Apache Tomcat/7.0.70
Server built: Jan 12 2017 14:59:11 UTC
Server number: 7.0.70-16.ep7.el7.0
OS Name: Linux
OS Version: 3.10.0-514.26.2.el7.x86_64
JVM Version: 1.8.0_131-b12
JVM Vendor: Oracle Corporation