Skip to content

Commit

Permalink
fixup! RHEL subscription-manager needs a re-register step
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 1, 2023
1 parent 3d30176 commit 286ec63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci_build_images/rhel7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ RUN --mount=type=secret,id=rhel_orgid,target=/run/secrets/rhel_orgid \
&& subscription-manager register \
--org="$(cat /run/secrets/rhel_orgid)" \
--activationkey="$(cat /run/secrets/rhel_keyname)" \
&& subscription-manager repos --enable=rhel-7-server-optional-rpms \
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& yum -y upgrade \
# the following is needed in case the subscription-manager was upgraded by the previous step \
Expand All @@ -24,6 +23,7 @@ RUN --mount=type=secret,id=rhel_orgid,target=/run/secrets/rhel_orgid \
&& subscription-manager register \
--org="$(cat /run/secrets/rhel_orgid)" \
--activationkey="$(cat /run/secrets/rhel_keyname)" \
&& subscription-manager repos --enable=rhel-7-server-optional-rpms \
&& yum-builddep -y mariadb-server \
&& yum -y install \
@development \
Expand Down

0 comments on commit 286ec63

Please sign in to comment.