Skip to content

[2.4] Keep image and version of the containers in Dockerfile files #2343

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

Merged
merged 2 commits into from
Jul 14, 2025

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Jul 11, 2025

Backport #2269 (PR #2341) to 2.4

DavideD added 2 commits July 11, 2025 13:47
We are trying to achieve two things:
* Make it possible for dependabot to upgrade the containers
  automatically
* Collect the image and version of the containers we use for testing in
  one place

Note that the test suite will still create and start the containers
programmatically, but it will read the first FROM line in each Dockerfile
to extract the image and version to use. It will ignore everything else.

My initial plan was to configure each container using the Dockerfile
directly, but I prefer to reuse the exsisting Testcontainers classes for
each database (for example, PostgreSQLContainer) because they contain
out-of-the-box configuration that I would need to copy somewhere else.

In any case, this is a good starting point and we can improve it later.
@DavideD DavideD added this to the 2.4.9 milestone Jul 11, 2025
@DavideD DavideD added testing Improvements to test suite build Something related to the build 2.4 labels Jul 11, 2025
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jul 11, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@DavideD DavideD linked an issue Jul 11, 2025 that may be closed by this pull request
@DavideD DavideD changed the title [2.4] [2.4] Keep image and version of the containers in Dockerfile files Jul 11, 2025
@DavideD DavideD removed the build Something related to the build label Jul 11, 2025
@DavideD DavideD merged commit 0bcbeed into hibernate:2.4 Jul 14, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.4 testing Improvements to test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move database versions to Docker files
1 participant