Skip to content

Apply LTS version for all MySQL images #229

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 1 commit into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion batch-rest-repository/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest")
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts")
.withInitScript("org/springframework/batch/core/schema-mysql.sql");

@Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest")
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts")
.withInitScript("org/springframework/batch/core/schema-mysql.sql");

@Container
Expand Down
2 changes: 1 addition & 1 deletion batch-skip-step/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest");
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts");

@Autowired
private JobLauncherTestUtils launcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest");
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts");

@Autowired
private JobLauncherTestUtils launcher;
Expand Down
4 changes: 2 additions & 2 deletions cloud-jdbc-env-repo/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ Next we will have link:{url-quickref}/src/test/java/zin/rashidi/boot/cloud/jdbce
[source,java]
----
@Testcontainers
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:8:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:lts:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
class CloudJdbcEnvRepoApplicationTests {

@Container
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:8");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private TestRestTemplate restClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;

@Testcontainers
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:8:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:lts:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
class CloudJdbcEnvRepoApplicationTests {

@Container
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:8");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private TestRestTemplate restClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TestDataDomainEventsApplication {
@Bean
@ServiceConnection
MySQLContainer<?> mysqlContainer() {
return new MySQLContainer<>("mysql:latest");
return new MySQLContainer<>("mysql:lts");
}

public static void main(String[] args) {
Expand Down
6 changes: 3 additions & 3 deletions data-envers-audit/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down Expand Up @@ -110,7 +110,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down Expand Up @@ -151,7 +151,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down
4 changes: 2 additions & 2 deletions data-jpa-audit/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class UserAuditTests {

@Container
@ServiceConnection
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down Expand Up @@ -174,7 +174,7 @@ class UserAuditTests {

@Container
@ServiceConnection
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class UserAuditTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private final static MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
4 changes: 2 additions & 2 deletions data-jpa-filtered-query/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository users;
Expand Down Expand Up @@ -72,7 +72,7 @@ class CountryRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private CountryRepository countries;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TestDataJpaFilteredQueryApplication {
@Bean
@ServiceConnection
MySQLContainer<?> mysqlContainer() {
return new MySQLContainer<>(DockerImageName.parse("mysql:latest"));
return new MySQLContainer<>(DockerImageName.parse("mysql:lts"));
}

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CountryRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private CountryRepository countries;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository users;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MongoDBContainer mongoDbContainer() {
@Bean
@ServiceConnection
MySQLContainer<?> mysqlContainer() {
return new MySQLContainer<>(DockerImageName.parse("mysql:latest"));
return new MySQLContainer<>(DockerImageName.parse("mysql:lts"));
}

public static void main(String[] args) {
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/batch-rest-repository.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest")
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts")
.withInitScript("org/springframework/batch/core/schema-mysql.sql");

@Container
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/batch-skip-step.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class UserBatchJobTests {

@Container
@ServiceConnection
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:latest");
private final static MySQLContainer<?> MYSQL_CONTAINER = new MySQLContainer<>("mysql:lts");

@Autowired
private JobLauncherTestUtils launcher;
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cloud-jdbc-env-repo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ Next we will have link:{url-quickref}/src/test/java/zin/rashidi/boot/cloud/jdbce
[source,java]
----
@Testcontainers
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:8:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
@SpringBootTest(properties = "spring.datasource.url=jdbc:tc:mysql:lts:///test?TC_INITSCRIPT=init-script.sql", webEnvironment = RANDOM_PORT)
class CloudJdbcEnvRepoApplicationTests {

@Container
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:8");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private TestRestTemplate restClient;
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/data-envers-audit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down Expand Up @@ -108,7 +108,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down Expand Up @@ -149,7 +149,7 @@ class BookAuditRevisionTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> MYSQL = new MySQLContainer<>("mysql:lts");

@Autowired
private BookRepository repository;
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/data-jpa-audit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class UserAuditTests {

@Container
@ServiceConnection
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down Expand Up @@ -172,7 +172,7 @@ class UserAuditTests {

@Container
@ServiceConnection
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:latest");
private final static MySQLContainer MYSQL = new MySQLContainer("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/data-jpa-filtered-query.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository users;
Expand Down Expand Up @@ -69,7 +69,7 @@ class CountryRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> mysql = new MySQLContainer<>("mysql:lts");

@Autowired
private CountryRepository countries;
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/jooq.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down Expand Up @@ -168,7 +168,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
4 changes: 2 additions & 2 deletions jooq/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down Expand Up @@ -171,7 +171,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void main(String[] args) {
@Bean
@ServiceConnection
MySQLContainer<?> mysqlContainer() {
return new MySQLContainer<>(DockerImageName.parse("mysql:latest"));
return new MySQLContainer<>(DockerImageName.parse("mysql:lts"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UserRepositoryTests {

@Container
@ServiceConnection
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:latest");
private static final MySQLContainer<?> container = new MySQLContainer<>("mysql:lts");

@Autowired
private UserRepository repository;
Expand Down
Loading