mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 03:00:23 +00:00
build: create /etc/selinux/config in case it is missing
Sometimes the Ceph container images seem to have a broken scriptlet
while installing/updating Ceph packages. It is relatively common for
them to fail when `/etc/selinux/config` does not exist. By ensuring the
file directory and file exist (even if empty), the package installation
or upgrades succeed.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
(cherry picked from commit 24d6b5fe3f
)
This commit is contained in:
parent
d3d17d583e
commit
0d66c35a5b
@ -10,6 +10,8 @@ FROM ${BASE_IMAGE} as updated_base
|
|||||||
RUN dnf config-manager --disable \
|
RUN dnf config-manager --disable \
|
||||||
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
|
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
|
||||||
|
|
||||||
|
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
|
||||||
|
|
||||||
RUN dnf -y update --nobest \
|
RUN dnf -y update --nobest \
|
||||||
&& dnf -y install nfs-utils \
|
&& dnf -y install nfs-utils \
|
||||||
&& dnf clean all \
|
&& dnf clean all \
|
||||||
|
@ -23,6 +23,8 @@ RUN source /build.env \
|
|||||||
RUN dnf config-manager --disable \
|
RUN dnf config-manager --disable \
|
||||||
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
|
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
|
||||||
|
|
||||||
|
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
|
||||||
|
|
||||||
RUN dnf -y install \
|
RUN dnf -y install \
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
|
@ -23,6 +23,8 @@ ENV \
|
|||||||
|
|
||||||
COPY build.env /
|
COPY build.env /
|
||||||
|
|
||||||
|
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
|
||||||
|
|
||||||
RUN source /build.env \
|
RUN source /build.env \
|
||||||
&& \
|
&& \
|
||||||
( test -n "${GOARCH}" && exit 0; echo -e "\n\nMissing GOARCH argument for building image, install Golang or run: make containerized-test GOARCH=amd64\n\n"; exit 1 ) \
|
( test -n "${GOARCH}" && exit 0; echo -e "\n\nMissing GOARCH argument for building image, install Golang or run: make containerized-test GOARCH=amd64\n\n"; exit 1 ) \
|
||||||
|
Loading…
Reference in New Issue
Block a user