Skip to content

Commit

Permalink
use separate registry for ociManifest test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeddada1 committed Jun 14, 2024
1 parent b762590 commit 1668da6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class JibIntegrationTest {
private final RegistryClient distrolessRegistryClient =
RegistryClient.factory(
EventHandlers.NONE,
dockerHost + ":5000",
dockerHost + ":6000",
"jib-distroless",
new FailoverHttpClient(true, true, ignored -> {}))
.newRegistryClient();
Expand Down Expand Up @@ -419,19 +419,17 @@ public void testBasicMultiPlatform_toDockerDaemon_pickFirstPlatformWhenNoMatchin
}

@Test
// @Ignore
public void testDistroless_ociManifest()
throws IOException, InterruptedException, ExecutionException, RegistryException,
CacheDirectoryCreationException, InvalidImageReferenceException {
System.out.println("testDistroless_ociManifest()");

Jib.fromScratch()
// .from(dockerHost + ":5000/distroless/base")
Jib.from("gcr.io/distroless/base@" + KNOWN_OCI_INDEX_SHA)
.setPlatforms(
ImmutableSet.of(new Platform("arm64", "linux"), new Platform("amd64", "linux")))
.containerize(
Containerizer.to(
RegistryImage.named(dockerHost + ":5000/jib-distroless:multi-platform"))
RegistryImage.named(dockerHost + ":6000/jib-distroless:multi-platform"))
.setAllowInsecureRegistries(true));

V22ManifestListTemplate manifestList =
Expand Down

0 comments on commit 1668da6

Please sign in to comment.