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:
Karol Latecki 2022-08-23 12:22:17 +02:00 committed by Jim Harris
parent 48312019c8
commit e8a40ada16
2 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,7 @@ ENV http_proxy=$PROXY
ENV https_proxy=$PROXY
ENV no_proxy=$NO_PROXY
COPY spdk.tar.gz /spdk.tar.gz
COPY --chown=root:root spdk.tar.gz /spdk.tar.gz
COPY pre-install /install
RUN /install

View File

@ -19,6 +19,7 @@ if [[ ! -e $spdk_tar ]]; then
fi
tar -C "$spdk_repo" -xf "$spdk_tar"
chown -R root:root "$spdk_repo"
# Required for building RPM
dnf install -y rpm-build