Skip to content

Commit

Permalink
Revert " DNM: update Dockerfile from changes in openshift#1498"
Browse files Browse the repository at this point in the history
This reverts commit 57f7494.
  • Loading branch information
jbtrystram committed Oct 10, 2024
1 parent 7bee10c commit a42590b
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions extensions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,16 @@ ADD . .
ARG COSA
ARG VARIANT
RUN if [[ -z "$COSA" ]] ; then ci/get-ocp-repo.sh ; fi
# On SCOS, we need to add the GPG keys of the various SIGs we need
RUN if rpm -q centos-stream-release; then \
if [[ $(rpm -q --qf "%{VERSION}" centos-stream-release) == "9.0" ]]; then \
if ! rpm -q centos-release-cloud; then \
dnf install -y centos-release-{cloud,nfv,virt}-common; \
fi && \
mkdir -p /usr/share/distribution-gpg-keys/centos && \
ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official && \
ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Cloud && \
ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512 && \
ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-NFV && \
ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Virtualization ; \
fi ; \
fi
RUN if [[ -n "${VARIANT}" ]]; then \
MANIFEST="manifest-${VARIANT}.yaml"; \
EXTENSIONS="extensions-${VARIANT}.yaml"; \
else \
MANIFEST="manifest.yaml"; \
EXTENSIONS="extensions.yaml"; \
fi && \
rpm-ostree compose extensions --rootfs=/ --output-dir=/usr/share/rpm-ostree/extensions/ ./"${MANIFEST}" ./"${EXTENSIONS}"
# on SCOS, we need to add the GPG keys of the various SIGs we need
RUN if rpm -q centos-stream-release && ! rpm -q centos-release-cloud; then dnf install -y centos-release-{cloud,nfv,virt}-common; fi
RUN mkdir -p /usr/share/distribution-gpg-keys/centos
RUN ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official
RUN ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Cloud
RUN ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
RUN ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-NFV
RUN ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Virtualization
RUN if [[ -n "${VARIANT}" ]]; then MANIFEST="manifest-${VARIANT}.yaml"; EXTENSIONS="extensions-${VARIANT}.yaml"; else MANIFEST="manifest.yaml"; EXTENSIONS="extensions.yaml"; fi && rpm-ostree compose extensions --rootfs=/ --output-dir=/usr/share/rpm-ostree/extensions/ ./"${MANIFEST}" ./"${EXTENSIONS}"

## Creates the repo metadata for the extensions.
## This uses Fedora as a lowest-common-denominator because it will work on
## current p8/s390x. See https://github.com/openshift/os/issues/1000
Expand Down

0 comments on commit a42590b

Please sign in to comment.