-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Update MariaDB image to 10.6 for integration tests and dev services #23329
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mariadb.image=${mariadb.image} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you would have one common file for all the images, right? I thought of doing it with a file specific to each devservice but it's certainly easier this way and good enough IMHO. This could be generalized to all devservices next. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gsmet Yeah, thought about multiple files too. I can change it to a specific one per dev service if you prefer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PS: This would also make #23329 (comment) obsolete. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW:
I have started working on this. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ public class MariaDBDevServicesProcessor { | |
|
||
private static final Logger LOG = Logger.getLogger(MariaDBDevServicesProcessor.class); | ||
|
||
public static final String TAG = "10.5.9"; | ||
public static final Integer PORT = 3306; | ||
public static final String MY_CNF_CONFIG_OVERRIDE_PARAM_NAME = "TC_MY_CNF"; | ||
|
||
|
@@ -75,8 +74,8 @@ private static class QuarkusMariaDBContainer extends MariaDBContainer { | |
|
||
public QuarkusMariaDBContainer(Optional<String> imageName, OptionalInt fixedExposedPort, boolean useSharedNetwork) { | ||
super(DockerImageName | ||
.parse(imageName.orElse("docker.io/" + MariaDBContainer.IMAGE + ":" + MariaDBDevServicesProcessor.TAG)) | ||
.asCompatibleSubstituteFor(DockerImageName.parse(MariaDBContainer.IMAGE))); | ||
.parse(imageName.orElseGet(() -> ConfigureUtil.getDefaultImageNameFor("mariadb"))) | ||
.asCompatibleSubstituteFor(DockerImageName.parse(MariaDBContainer.NAME))); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: |
||
this.fixedExposedPort = fixedExposedPort; | ||
this.useSharedNetwork = useSharedNetwork; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ public static String guessDialect(String persistenceUnitName, String resolvedDbK | |
return "io.quarkus.hibernate.orm.runtime.dialect.QuarkusH2Dialect"; | ||
} | ||
if (DatabaseKind.isMariaDB(resolvedDbKind)) { | ||
return "org.hibernate.dialect.MariaDB103Dialect"; | ||
return "org.hibernate.dialect.MariaDB106Dialect"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not entirely sure about this one. But to quote the comment further up:
If it's get's merged like this we should probably add something to the migration guide? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed on the change and the note. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 thanks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
if (DatabaseKind.isMySQL(resolvedDbKind)) { | ||
return "org.hibernate.dialect.MySQL8Dialect"; | ||
|
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.
Not sure about "external" dev services. To cover those as well here we could load all properties on the CP.
But then again this can be considered more of an "internal" feature for the beginning?