Skip to content

Commit df95c7f

Browse files
committed
RHAIENG-948: add subscription since ubi9 repos are now unavailable
1 parent 6b1204e commit df95c7f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

codeserver/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ ARG CODESERVER_VERSION=v4.104.0
2323

2424
COPY ${CODESERVER_SOURCE_CODE}/get_code_server_rpm.sh .
2525

26+
### BEGIN Subscribe with subscription manager
27+
RUN /bin/bash <<'EOF'
28+
# The devops activationkey is not powerful enough, use rhoai-ide-konflux key
29+
# https://redhat-internal.slack.com/archives/C07SBP17R7Z/p1764077596143619?thread_ts=1761667034.429529&cid=C07SBP17R7Z
30+
subscription-manager register --org 18631088 --activationkey thisisunsafe
31+
32+
# If we have a Red Hat subscription prepared, refresh it
33+
set -Eeuxo pipefail
34+
if command -v subscription-manager &> /dev/null; then
35+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "No identity, skipping refresh."
36+
fi
37+
EOF
38+
39+
### END Subscribe with subscription manager
40+
2641
# create dummy file to ensure this stage is awaited before installing rpm
2742
RUN ./get_code_server_rpm.sh && touch /tmp/control
2843

0 commit comments

Comments
 (0)