Skip to content
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

Weaviate: Support new project container registry #8512

Merged
merged 1 commit into from
Apr 5, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Testcontainers implementation of Weaviate.
* <p>
* Supported image: {@code semitechnologies/weaviate}
* Supported images: {@code cr.weaviate.io/semitechnologies/weaviate}, {@code semitechnologies/weaviate}
* <p>
* Exposed ports:
* <ul>
Expand All @@ -16,15 +16,19 @@
*/
public class WeaviateContainer extends GenericContainer<WeaviateContainer> {

private static final String WEAVIATE_IMAGE = "semitechnologies/weaviate";
private static final DockerImageName DEFAULT_WEAVIATE_IMAGE = DockerImageName.parse(
"cr.weaviate.io/semitechnologies/weaviate"
);

private static final DockerImageName DOCKER_HUB_WEAVIATE_IMAGE = DockerImageName.parse("semitechnologies/weaviate");

public WeaviateContainer(String dockerImageName) {
this(DockerImageName.parse(dockerImageName));
}

public WeaviateContainer(DockerImageName dockerImageName) {
super(dockerImageName);
dockerImageName.assertCompatibleWith(DockerImageName.parse(WEAVIATE_IMAGE));
dockerImageName.assertCompatibleWith(DEFAULT_WEAVIATE_IMAGE, DOCKER_HUB_WEAVIATE_IMAGE);
withExposedPorts(8080, 50051);
withEnv("AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED", "true");
withEnv("PERSISTENCE_DATA_PATH", "/var/lib/weaviate");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WeaviateContainerTest {
@Test
public void testWeaviate() {
try ( // container {
WeaviateContainer weaviate = new WeaviateContainer("semitechnologies/weaviate:1.24.5")
WeaviateContainer weaviate = new WeaviateContainer("cr.weaviate.io/semitechnologies/weaviate:1.24.5")
// }
) {
weaviate.start();
Expand Down
Loading