File tree Expand file tree Collapse file tree
test/image-blueprints-bootc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ FROM registry.stage.redhat.io/rhel10/rhel-bootc:10.2
44ARG USHIFT_RPM_REPO_NAME=microshift-local
55ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME
66
7- # Configure the RPM repositories (no EUS in staging environment)
7+ # Configure the RPM repositories
8+ # - No EUS repositories in staging environment
9+ # - Disable default repositories to avoid pre-release repo access errors
810COPY --chmod=755 ./bootc-images/rpm-repo-config.sh /tmp/rpm-repo-config.sh
9- RUN /tmp/rpm-repo-config.sh && rm -f /tmp/rpm-repo-config.sh
11+ RUN /tmp/rpm-repo-config.sh --disable-all && rm -f /tmp/rpm-repo-config.sh
1012
1113# Configure the RHEL mirror RPM repositories (for use in the staging environment)
1214ARG RHEL_MIRROR_REPO_NAME=rhel102-mirror.repo
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ FROM registry.stage.redhat.io/rhel9/rhel-bootc:9.8
44ARG USHIFT_RPM_REPO_NAME=microshift-local
55ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME
66
7- # Configure the RPM repositories (no EUS in staging environment)
7+ # Configure the RPM repositories
8+ # - No EUS repositories in staging environment
9+ # - Disable default repositories to avoid pre-release repo access errors
810COPY --chmod=755 ./bootc-images/rpm-repo-config.sh /tmp/rpm-repo-config.sh
9- RUN /tmp/rpm-repo-config.sh && rm -f /tmp/rpm-repo-config.sh
11+ RUN /tmp/rpm-repo-config.sh --disable-all && rm -f /tmp/rpm-repo-config.sh
1012
1113# Configure the RHEL mirror RPM repositories (for use in the staging environment)
1214ARG RHEL_MIRROR_REPO_NAME=rhel98-mirror.repo
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ match-architectures = ["x86_64"]
1010EOF
1111
1212# Enable the FIPS crypto policy
13- #
14- # Note: CNI plugins are required for podman to operate normally on RHEL 9.x.
15- # This package is no longer installed as cri-o dependency.
16- RUN dnf install -y crypto-policies-scripts containernetworking-plugins && \
13+ RUN dnf install -y crypto-policies-scripts && \
1714 update-crypto-policies --no-reload --set FIPS && \
1815 dnf clean all
1916# {{- end -}}
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ while [ $# -gt 0 ] ; do
2424 enable_eus_repositories
2525 shift
2626 ;;
27+ --disable-all)
28+ dnf config-manager --set-disabled ' *'
29+ shift
30+ ;;
2731 * )
2832 echo " Unknown option: $1 "
2933 exit 1
You can’t perform that action at this time.
0 commit comments