Skip to content

Commit 8096308

Browse files
committed
change default region to us-west-2
Signed-off-by: sirutBuasai <sirutbuasai27@outlook.com>
1 parent bb31335 commit 8096308

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/src/data/base/12.8-gpu-ec2.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ public_registry: true
1212
# Image tags (first tag is used in available_images.md)
1313
tags:
1414
- "12.8.1-gpu-py312-cu128-ubuntu24.04-ec2"
15-
16-
announcements:

docs/src/global.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ accelerators:
3838

3939
# ECR configuration
4040
example_ecr_account: "763104351884"
41+
example_region: "us-west-2"
4142

4243
# =============================================================================
4344
# Display Names

docs/src/image_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ def display_release_note_link(self) -> str:
9696
def get_image_uris(self) -> list[str]:
9797
"""Get list of image URIs (private ECR + public ECR if available)."""
9898
account = self.get("example_ecr_account", GLOBAL_CONFIG["example_ecr_account"])
99+
region = self.get("example_region", GLOBAL_CONFIG["example_region"])
99100
tags = self.get("tags", [])
100101
if not isinstance(tags, list):
101102
raise ValueError(f"'tags' field must be a list in {self._repository}")
102103

103104
uris = []
104105
for tag in tags:
105-
uris.append(build_ecr_uri(account, self._repository, tag))
106+
uris.append(build_ecr_uri(account, self._repository, tag, region))
106107

107108
if self.get("public_registry"):
108109
for tag in tags:

0 commit comments

Comments
 (0)