Skip to content

Commit

Permalink
[Fixes_kie_issues_1749] Switch dockerhub to a mirrored registry
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe committed Jan 15, 2025
1 parent c91a2de commit a1854eb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
16 changes: 10 additions & 6 deletions kogito-build/kogito-build-no-bom-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
<checkstyle.logViolationsToConsole>true</checkstyle.logViolationsToConsole>

<!-- container images for testing -->
<container.image.infinispan>infinispan/server:${version.org.infinispan}</container.image.infinispan>
<container.image.infinispan>mirror.gcr.io/infinispan/server:${version.org.infinispan}</container.image.infinispan>
<container.image.keycloak>quay.io/keycloak/keycloak:${version.org.keycloak}</container.image.keycloak>
<container.image.kafka>redpandadata/redpanda:v24.3.1</container.image.kafka>
<container.image.wurstmeister.kafka>wurstmeister/kafka:${version.wurstmeister.kafka}</container.image.wurstmeister.kafka>
<container.image.mongodb>library/mongo:${version.org.mongo-image}</container.image.mongodb>
<container.image.redis>redislabs/redisearch:${version.org.redis}</container.image.redis>
<container.image.postgres>postgres:${version.org.postgres}</container.image.postgres>
<container.image.kafka>mirror.gcr.io/redpandadata/redpanda:v24.3.1</container.image.kafka>
<container.image.wurstmeister.kafka>mirror.gcr.io/wurstmeister/kafka:${version.wurstmeister.kafka}</container.image.wurstmeister.kafka>
<container.image.mongodb>mirror.gcr.io/library/mongo:${version.org.mongo-image}</container.image.mongodb>
<container.image.redis>mirror.gcr.io/redislabs/redisearch:${version.org.redis}</container.image.redis>
<container.image.postgres>mirror.gcr.io/postgres:${version.org.postgres}</container.image.postgres>

<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -114,6 +114,7 @@
<version.surefire.plugin>3.1.2</version.surefire.plugin> <!-- minimum required by JUnit 5 -->
<version.surefire.report.plugin>3.1.2</version.surefire.report.plugin>
<version.taglist.plugin>2.4</version.taglist.plugin>
<version.testcontainers.ryuk>0.7.0</version.testcontainers.ryuk>
<!-- Versions plugin should stay on version 2.5
until https://github.com/mojohaus/versions-maven-plugin/issues/312 is fixed -->
<version.versions.plugin>2.5</version.versions.plugin>
Expand Down Expand Up @@ -354,6 +355,9 @@
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
</systemPropertyVariables>
<environmentVariables>
<TESTCONTAINERS_RYUK_CONTAINER_IMAGE>mirror.gcr.io/testcontainers/ryuk:${version.testcontainers.ryuk}</TESTCONTAINERS_RYUK_CONTAINER_IMAGE>
</environmentVariables>
<parallel>all</parallel>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.containers.wait.strategy.HostPortWaitStrategy;
import org.testcontainers.containers.wait.strategy.WaitAllStrategy;
import org.testcontainers.utility.DockerImageName;

import static org.kie.kogito.testcontainers.KogitoGenericContainer.getImageName;

/**
* PostgreSQL Container for Kogito examples.
Expand All @@ -40,7 +43,7 @@ public class KogitoPostgreSqlContainer extends PostgreSQLContainer<KogitoPostgre
private static final Logger LOGGER = LoggerFactory.getLogger(KogitoPostgreSqlContainer.class);

public KogitoPostgreSqlContainer() {
super(KogitoGenericContainer.getImageName(NAME));
super(DockerImageName.parse(getImageName(NAME)).asCompatibleSubstituteFor("postgres"));
withLogConsumer(getLogger());
withLogConsumer(new Slf4jLogConsumer(LOGGER));
withStartupTimeout(Constants.CONTAINER_START_TIMEOUT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ kogito.events.variables.enabled=false
kogito.events.processinstances.collection=testPICollection
kogito.events.usertasks.collection=testUTCollection
kogito.events.variables.collection=testVCollection
kogito.events.database=testDB
kogito.events.database=testDB

quarkus.mongodb.devservices.image-name=mirror.gcr.io/mongo:4.4

0 comments on commit a1854eb

Please sign in to comment.