docker: make sure root owns spdk repo directory
Make sure copied SPDK repository is fully owned by root user when performing the image build. This is to avoid git "safe.directory" feature from compalining. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I4ead2dd23198f79707b240c1c7e7470a68980d85 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14156 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Michal Berger <michal.berger@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
48312019c8
commit
e8a40ada16
@ -11,8 +11,7 @@ ENV http_proxy=$PROXY
|
|||||||
ENV https_proxy=$PROXY
|
ENV https_proxy=$PROXY
|
||||||
ENV no_proxy=$NO_PROXY
|
ENV no_proxy=$NO_PROXY
|
||||||
|
|
||||||
|
COPY --chown=root:root spdk.tar.gz /spdk.tar.gz
|
||||||
COPY spdk.tar.gz /spdk.tar.gz
|
|
||||||
COPY pre-install /install
|
COPY pre-install /install
|
||||||
RUN /install
|
RUN /install
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ if [[ ! -e $spdk_tar ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
tar -C "$spdk_repo" -xf "$spdk_tar"
|
tar -C "$spdk_repo" -xf "$spdk_tar"
|
||||||
|
chown -R root:root "$spdk_repo"
|
||||||
|
|
||||||
# Required for building RPM
|
# Required for building RPM
|
||||||
dnf install -y rpm-build
|
dnf install -y rpm-build
|
||||||
|
Loading…
Reference in New Issue
Block a user