-
Notifications
You must be signed in to change notification settings - Fork 20
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
remove minor versions for tomcat #1669
Conversation
Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-1669 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.6 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1669/ tox -- -n auto The following images can be pulled from the staging project:
|
Created a staging project on OBS for 7: home:defolos:BCI:Staging:SLE-15-SP7:7-1669 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-1669/ tox -- -n auto The following images can be pulled from the staging project:
|
Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669 Build ResultsRepository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1669/ tox -- -n auto The following images can be pulled from the staging project:
|
7e2b197
to
127459c
Compare
127459c
to
7d9b753
Compare
], | ||
cmd=[ | ||
f"/usr/{'libexec' if os_version in (OsVersion.TUMBLEWEED, OsVersion.SLE16_0) else 'lib'}/tomcat/server", | ||
"start", | ||
], | ||
exposes_tcp=[8080], | ||
env={ | ||
"TOMCAT_MAJOR": tomcat_major, | ||
"TOMCAT_MAJOR": math.floor(tomcat_ver), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: int(tomcat_ver)
achieves the same thing and does not require an extra library import.
(10, OsVersion.TUMBLEWEED, 22), | ||
(10, OsVersion.TUMBLEWEED, 21), | ||
(10, OsVersion.TUMBLEWEED, 17), | ||
for tomcat_ver, os_version, jre_version in ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are hardcoding versions already, why not include tomcat_ver_major
and avoid any math conversions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deriving it from one value is more DRY than duplicating it in the tuple, imho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Floats are imho not the right way to handle version numbers due to potential representation & rounding issues. I'd suggest to use either strings or instances of packaging.Version
7d9b753
to
644646b
Compare
644646b
to
6b7975b
Compare
Created a staging project on OBS for 16.0: home:defolos:BCI:Staging:16.0:16.0-1669 |
Created a staging project on OBS for 5: home:defolos:BCI:Staging:SLE-15-SP5:5-1669 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.5 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1669/ tox -- -n auto The following images can be pulled from the staging project:
|
6b7975b
to
9d2f544
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only have one nitpick
9d2f544
to
3778971
Compare
3778971
to
7df627e
Compare
We should only have the tags for the listed product versions and their patch releases.
7df627e
to
0191b9c
Compare
there should be "branch" (which is major version) and fullversion-flavor.