Skip to content

Commit 499f479

Browse files
committed
podvm-builder: comment the subscription commands
The commands are causing conflict with our build system, where the subscription is automatically done. Keeping the commands as comments to help manual builds on unsubscribed systems. Signed-off-by: Julien Ropé <[email protected]>
1 parent 4e7a063 commit 499f479

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

config/peerpods/podvm/Dockerfile.podvm-builder

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ ARG ACTIVATION_KEY
1515

1616
# This registering RHEL when building on an unsubscribed system
1717
# If you are running a UBI container on a registered and subscribed RHEL host,
18-
# the main RHEL Server repository is enabled inside the standard UBI container
19-
RUN if [[ -n "${ACTIVATION_KEY}" && -n "${ORG_ID}" ]]; then \
20-
rm -f /etc/rhsm-host && rm -f /etc/pki/entitlement-host; \
21-
subscription-manager register --org=${ORG_ID} --activationkey=${ACTIVATION_KEY}; \
22-
fi
18+
# the main RHEL Server repository is enabled inside the standard UBI container.
19+
# Uncomment this and provide the associated ARG variables to register.
20+
#RUN if [[ -n "${ACTIVATION_KEY}" && -n "${ORG_ID}" ]]; then \
21+
# rm -f /etc/rhsm-host && rm -f /etc/pki/entitlement-host; \
22+
# subscription-manager register --org=${ORG_ID} --activationkey=${ACTIVATION_KEY}; \
23+
# fi
2324

2425
RUN mkdir -p /scripts
2526

0 commit comments

Comments
 (0)