Skip to content

Commit 3ad7b88

Browse files
authored
Add debug output for red hat registry error during docker build
1 parent dfc3c8c commit 3ad7b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN --mount=type=secret,id=activation_key,env=ACTIVATION_KEY \
1313
if [[ $DEPS_IMAGE =~ "alpine" ]]; \
1414
then apk add nfs-utils; \
1515
else subscription-manager register --activationkey $ACTIVATION_KEY --org $ORGANIZATION && \
16-
yum install --repo=rhel-9-*-baseos-rpms -y nfs-utils; \
16+
yum install --repo=rhel-9-*-baseos-rpms -y nfs-utils || { cat /var/log/rhsm/rhsm.log; exit 1; } \
1717
fi; \
1818
# Copy real certificates \
1919
mkdir /real-certs; \

0 commit comments

Comments
 (0)