Commit e8a40ada authored by Karol Latecki's avatar Karol Latecki Committed by Jim Harris
Browse files

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: default avatarKarol Latecki <karol.latecki@intel.com>
Change-Id: I4ead2dd23198f79707b240c1c7e7470a68980d85
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14156


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 48312019
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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

+1 −0
Original line number Diff line number Diff line
@@ -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