Bug 1471893 - [RFE] Tomcat exact version in label for jboss-webserver-3/webserver31-tomcat7-openshift image
Summary: [RFE] Tomcat exact version in label for jboss-webserver-3/webserver31-tomcat7...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: tomcat7
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Coty Sutherland
QA Contact: Michal Karm Babacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-17 15:26 UTC by Vladislav Walek
Modified: 2020-09-10 10:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-30 15:31:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-1913 0 Minor Verified [JWS] Introduce an environment variable for the tomcat version 2018-08-06 10:32:59 UTC

Description Vladislav Walek 2017-07-17 15:26:41 UTC
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
jboss-webserver-3/webserver31-tomcat7-openshift:latest

Comment 1 kconner 2017-07-19 13:46:54 UTC
The information is present in the images through their environment variables, it should be possible to query this from the command line.

For examples:

docker inspect registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift | egrep 'PRODUCT_VERSION|JBOSS_WEBSERVER_VERSION'

would result in

                "JBOSS_WEBSERVER_VERSION=3.1.0",
                "PRODUCT_VERSION=3.1.0",
                "JBOSS_WEBSERVER_VERSION=3.1.0",
                "PRODUCT_VERSION=3.1.0",

Comment 2 kconner 2017-07-19 13:49:12 UTC
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.

Comment 3 kconner 2017-07-19 13:53:06 UTC
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.

Comment 4 kconner 2017-07-19 15:19:22 UTC
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
Architecture:   amd64
JVM Version:    1.8.0_131-b12
JVM Vendor:     Oracle Corporation

Comment 5 kconner 2017-07-19 15:19:23 UTC
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
Architecture:   amd64
JVM Version:    1.8.0_131-b12
JVM Vendor:     Oracle Corporation

Comment 6 Steve Speicher 2018-07-30 14:10:39 UTC
Reassigning to JWS/tomcat team


Note You need to log in before you can comment on or make changes to this bug.