Skip to content

Commit bc89231

Browse files
authored
Merge pull request #754 from fontivan/sskeard/cnf-20367-cnf-18836-images-overhaul-fix-3
CNF-20367 / CNF-18836: Align on changes to telco5g-konflux
2 parents 1f5c4f5 + ac671c7 commit bc89231

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

.konflux/container_build_args.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ KONFLUX=true
55
# The builder image is used to compile the code
66
# This should match the varsFromImage in the rpms.build.in.yaml file
77
# Mintmaker should keep these in sync automatically when it performs updates
8-
BUILDER_IMAGE=registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
8+
BUILDER_IMAGE=registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
99
#
1010

1111
# The runtime image is used to run the binaries
1212
# This should match the varsFromImage in the rpms.runtime.in.yaml file
1313
# Mintmaker should keep these in sync automatically when it performs updates
14-
RUNTIME_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
14+
RUNTIME_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
1515
#

.konflux/lock-build/rpms.in.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ contentOrigin:
2020
priority: 1
2121
# This should match the BUILDER_IMAGE in container_build_args.conf
2222
# Mintmaker should keep these in sync automatically when it performs updates
23-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
23+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
2424
#
2525
- repoid: ubi-9-for-$basearch-baseos-rpms
2626
name: Red Hat Universal Base Image 9 for $basearch - BaseOS (RPMs)
@@ -35,7 +35,7 @@ contentOrigin:
3535
priority: 1
3636
# This should match the BUILDER_IMAGE in container_build_args.conf
3737
# Mintmaker should keep these in sync automatically when it performs updates
38-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
38+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
3939
#
4040
- repoid: codeready-builder-for-ubi-9-$basearch-rpms
4141
name: Red Hat CodeReady Linux Builder for UBI 9 $basearch (RPMs)
@@ -50,7 +50,7 @@ contentOrigin:
5050
priority: 1
5151
# This should match the BUILDER_IMAGE in container_build_args.conf
5252
# Mintmaker should keep these in sync automatically when it performs updates
53-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
53+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
5454
#
5555
# RHEL repos are required for some packages
5656
- repoid: rhel-9-for-$basearch-appstream-rpms
@@ -72,7 +72,7 @@ contentOrigin:
7272
priority: 2
7373
# This should match the BUILDER_IMAGE in container_build_args.conf
7474
# Mintmaker should keep these in sync automatically when it performs updates
75-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
75+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
7676
#
7777
- repoid: rhel-9-for-$basearch-baseos-rpms
7878
name: Red Hat Enterprise Linux 9 for $basearch - BaseOS (RPMs)
@@ -93,7 +93,7 @@ contentOrigin:
9393
priority: 2
9494
# This should match the BUILDER_IMAGE in container_build_args.conf
9595
# Mintmaker should keep these in sync automatically when it performs updates
96-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
96+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
9797
#
9898
- repoid: codeready-builder-for-rhel-9-$basearch-rpms
9999
name: Red Hat CodeReady Linux Builder for RHEL 9 $basearch (RPMs)
@@ -114,7 +114,7 @@ contentOrigin:
114114
priority: 2
115115
# This should match the BUILDER_IMAGE in container_build_args.conf
116116
# Mintmaker should keep these in sync automatically when it performs updates
117-
varsFromImage: registry.access.redhat.com/ubi9/ubi@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
117+
varsFromImage: registry.access.redhat.com/ubi9/ubi:latest@sha256:dcd8128d7620b06e4bce291f30db6ffcfa339b04e6d66081e36eb8e2b1b700f8
118118
#
119119
packages:
120120
- rust-toolset

.konflux/lock-runtime/rpms.in.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ contentOrigin:
1818
enabled_metadata: "1"
1919
# This should match the RUNTIME_IMAGE in container_build_args.conf
2020
# Mintmaker should keep these in sync automatically when it performs updates
21-
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
21+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
2222
#
2323
- repoid: ubi-9-for-$basearch-baseos-rpms
2424
name: Red Hat Universal Base Image 9 for $basearch - BaseOS (RPMs)
@@ -32,7 +32,7 @@ contentOrigin:
3232
enabled_metadata: "1"
3333
# This should match the RUNTIME_IMAGE in container_build_args.conf
3434
# Mintmaker should keep these in sync automatically when it performs updates
35-
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
35+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
3636
#
3737
- repoid: codeready-builder-for-ubi-9-$basearch-rpms
3838
name: Red Hat CodeReady Linux Builder for UBI 9 $basearch (RPMs)
@@ -46,7 +46,7 @@ contentOrigin:
4646
enabled_metadata: "1"
4747
# This should match the RUNTIME_IMAGE in container_build_args.conf
4848
# Mintmaker should keep these in sync automatically when it performs updates
49-
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
49+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:61d5ad475048c2e655cd46d0a55dfeaec182cc3faa6348cb85989a7c9e196483
5050
#
5151
packages:
5252
- openssh-clients

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ RHEL9_ORG_ID ?= ""
2323
# This can be set from the command line if the default is not correct for your environment.
2424
REGISTRY_AUTH_FILE ?= $(shell echo $${XDG_RUNTIME_DIR:-/run/user/$$(id -u)})/containers/auth.json
2525

26-
# RHEL9_RELEASE defines the RHEL9 release version to update the rpm lock file for the runtime
27-
# This is automatically extracted from the Containerfile
28-
RHEL9_RELEASE ?= $(shell awk -F'[=:@]' '/^BUILDER_IMAGE=registry\.redhat\.io\/rhel9.*-els\/rhel:/ {print $$3}' $(PROJECT_DIR)/.konflux/container_build_args.conf)
29-
3026
# YAMLLINT_VERSION defines the yamllint version to download from GitHub releases.
3127
YAMLLINT_VERSION ?= 1.35.1
3228

@@ -102,7 +98,6 @@ konflux-update-rpm-lock-build: sync-git-submodules ## Update the rpm lock file f
10298
LOCK_SCRIPT_TARGET_DIR=$(PROJECT_DIR)/.konflux/lock-build/tmp/ \
10399
RHEL9_EXECUTION_IMAGE=$$(awk -F'=' '/^BUILDER_IMAGE=/ {print $$2}' $(PROJECT_DIR)/.konflux/container_build_args.conf | sed 's|@.*||') \
104100
RHEL9_IMAGE_TO_LOCK=$$(awk -F'=' '/^BUILDER_IMAGE=/ {print $$2}' $(PROJECT_DIR)/.konflux/container_build_args.conf) \
105-
RHEL9_RELEASE=$(RHEL9_RELEASE) \
106101
RHEL9_ACTIVATION_KEY=$(RHEL9_ACTIVATION_KEY) \
107102
RHEL9_ORG_ID=$(RHEL9_ORG_ID) \
108103
REGISTRY_AUTH_FILE=$(REGISTRY_AUTH_FILE) \

0 commit comments

Comments
 (0)