You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN subscription-manager status || touch /var/tmp/.subscription-initially-not-present
53
+
51
54
# uncomment the below line if you fall on this error: subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management.
52
55
#RUN sed -i 's/\(def in_container():\)/\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py
53
56
54
-
# Run the subscription manager command using the provided credentials. Only include --serverurl and --baseurl if they are provided
55
-
RUN SERVERURL=$(cat ${SECRET_DIR}/SERVERURL 2>/dev/null || echo ${SERVERURL_DEFAULT}) && \
57
+
# If necessary, run the subscription manager command using the provided credentials. Only include --serverurl and --baseurl if they are provided
58
+
RUN [ ! -f '/var/tmp/.subscription-initially-not-present' ] || \
RUN subscription-manager status || touch /var/tmp/.subscription-initially-not-present
203
+
197
204
# uncomment the below line if you fall on this error: subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management.
198
205
#RUN sed -i 's/\(def in_container():\)/\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py
199
206
200
-
# Run the subscription manager command using the provided credentials. Only include --serverurl and --baseurl if they are provided
201
-
RUN SERVERURL=$(cat ${SECRET_DIR}/SERVERURL 2>/dev/null || echo ${SERVERURL_DEFAULT}) && \
207
+
# If necessary, run the subscription manager command using the provided credentials. Only include --serverurl and --baseurl if they are provided
208
+
RUN [ ! -f '/var/tmp/.subscription-initially-not-present' ] || \
0 commit comments