Skip to content

Commit

Permalink
Update to support override artemis devservices image name (#6767)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfeng authored Nov 12, 2024
1 parent c5916e8 commit 57463d8
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
import java.util.Map;

import com.github.dockerjava.api.model.Ulimit;
import io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfig;
import io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfigs;
import io.quarkus.artemis.core.runtime.ArtemisDevServicesBuildTimeConfig;
import io.quarkus.artemis.core.runtime.ArtemisUtil;
import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
import io.smallrye.config.SmallRyeConfigBuilder;
import org.testcontainers.containers.GenericContainer;
Expand Down Expand Up @@ -106,9 +109,13 @@ public void stop() {
private String getArtemisImageName() {
// Align to the same image used by quarkus-artemis
return new SmallRyeConfigBuilder()
.addSystemSources()
.withValidateUnknown(false)
.withMapping(ArtemisBuildTimeConfig.class)
.withMapping(ArtemisBuildTimeConfigs.class)
.withMapping(ArtemisDevServicesBuildTimeConfig.class)
.build()
.getConfigMapping(ArtemisDevServicesBuildTimeConfig.class)
.getImageName();
.getConfigMapping(ArtemisBuildTimeConfigs.class).configs().get(ArtemisUtil.DEFAULT_CONFIG_NAME)
.devservices().getImageName();
}
}

0 comments on commit 57463d8

Please sign in to comment.