Skip to content

Conversation

@cgbautista
Copy link
Contributor

Fix upgrade argument, since it didn't perform the major_version check to choose between the different tomcat/java versions and tried to use docker build with 3 different Dockerfile in 3 subfolders instead of the specific one for the version it is trying to upgrade to.

Moved the sleep in wait_for_server to let docker start nginx before trying to connect to it (raising an exception). Even in the best case scenario in which nginx would start before reaching this code, tomcat would likely take a little extra to be ready, so the sleep will take place at least once (usually several times, since a migration would include some SQL to be run before tomcat would be in a ready state and until then a 502 error would be generated each time it is tested).

Moved common parts from create.py to utils.py

… to choose between the different tomcat/java versions and tried to use `docker build` with 3 different Dockerfile in 3 subfolders

Moved the sleep in wait_for_server to let docker start nginx before trying to connect to it (raising an exception). Even in the best case scenario in which nginx would start before reaching this code, tomcat would likely take a little extra to be ready, so the sleep will take place at least once (usually several times, since a migration would include some SQL to be run before tomcat would be in a ready state and until then a 502 error would be generated each time it is tested)
@cgbautista cgbautista requested a review from idelcano October 3, 2025 13:39
Base automatically changed from feature/glowroot to development October 29, 2025 15:28
@cgbautista cgbautista requested a review from idelcano December 29, 2025 15:20
Copy link
Contributor

@idelcano idelcano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its ok for me
thanks @cgbautista

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants