build: refactor dockerfile to simplify selinux config directory creation

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
This commit is contained in:
Ali Afsharzadeh 2024-12-02 15:32:15 +03:30 committed by mergify[bot]
parent a32ba13045
commit 1c93d9e4a6
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ FROM ${BASE_IMAGE} as updated_base
RUN dnf config-manager --disable \
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
RUN mkdir -p /etc/selinux && touch /etc/selinux/config
RUN dnf -y update --nobest \
&& dnf -y install nfs-utils \

View File

@ -23,7 +23,7 @@ RUN source /build.env \
RUN dnf config-manager --disable \
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
RUN mkdir -p /etc/selinux && touch /etc/selinux/config
# other/conflicting versions of protobuf get installed as dependency
RUN dnf -y remove protobuf

View File

@ -23,7 +23,7 @@ ENV \
COPY build.env /
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
RUN mkdir -p /etc/selinux && touch /etc/selinux/config
RUN source /build.env \
&& \