mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-12 16:10:19 +00:00
build: refactor dockerfile to simplify selinux config directory creation
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
This commit is contained in:
parent
a32ba13045
commit
1c93d9e4a6
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
&& \
|
||||
|
Loading…
Reference in New Issue
Block a user