Skip to content

Commit

Permalink
apps: Use confiured DNS base name to infer app URI
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Nov 13, 2024
1 parent 3363c14 commit 05a5ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/get_layers_meta.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import json

from helpers import status
from helpers import status, fio_dnsbase
from apps.docker_store import DockerStore
from apps.compose_apps import ComposeApps

Expand Down Expand Up @@ -50,7 +50,7 @@ def print_layer_details(layer: DockerStore.Layer):
for img in app.images(expand_env=True):
img_uri = img
# if it's a factory image and is not pinned then we need to figure out its tag
if img_uri.startswith("hub.foundries.io") and -1 == img_uri.find("@sha256:"):
if img_uri.startswith(f"hub.{fio_dnsbase}") and -1 == img_uri.find("@sha256:"):
# Find out if the image reference is tagged
end_pos = img_uri.rfind(":")
# The image should be referenced with the tag that the builder has tagged
Expand Down

0 comments on commit 05a5ca5

Please sign in to comment.