Skip to content
Open
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
5 changes: 5 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
<artifactId>registry-gcp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.salesforce.multicloudj</groupId>
<artifactId>registry-aws</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ public class Main {

// Constants
private static final String DEFAULT_PROVIDER = "gcp";
private static final String REGISTRY_ENDPOINT = "https://us-docker.pkg.dev";
private static final String REPOSITORY = "my-project/my-repo/my-image";
private static final String REGISTRY_ENDPOINT = "https://your-registry-endpoint";
private static final String REPOSITORY = "your-repository";
private static final String TAG = "latest";
private static final String REGION = "your-region";

// Demo settings
private static final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
Expand Down Expand Up @@ -163,6 +164,7 @@ private static void showSectionHeaderWithPause(String title) {
private ContainerRegistryClient initializeClient() {
return ContainerRegistryClient.builder(provider)
.withRegistryEndpoint(REGISTRY_ENDPOINT)
.withRegion(REGION)
.build();
}

Expand Down Expand Up @@ -296,6 +298,7 @@ private void demonstratePlatformSelection() {
try (ContainerRegistryClient client =
ContainerRegistryClient.builder(provider)
.withRegistryEndpoint(REGISTRY_ENDPOINT)
.withRegion(REGION)
.withPlatform(arm64)
.build()) {

Expand Down
Loading