Skip to content

Commit b50bdf6

Browse files
authored
Add safe directory to all dockerfiles (#1435)
1 parent 9fa63ce commit b50bdf6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

conda/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ENV LANGUAGE en_US.UTF-8
88

99
ARG DEVTOOLSET_VERSION=9
1010
RUN yum install -y wget curl perl util-linux xz bzip2 git patch which unzip
11+
# Just add everything as a safe.directory for git since these will be used in multiple places with git
12+
RUN git config --global --add safe.directory '*'
1113
RUN yum install -y yum-utils centos-release-scl
1214
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
1315
RUN yum install -y devtoolset-${DEVTOOLSET_VERSION}-gcc devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ devtoolset-${DEVTOOLSET_VERSION}-gcc-gfortran devtoolset-${DEVTOOLSET_VERSION}-binutils

libtorch/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ENV DEBIAN_FRONTEND=noninteractive
66

77
RUN apt-get clean && apt-get update
88
RUN apt-get install -y curl locales git-all autoconf automake make cmake wget unzip
9+
# Just add everything as a safe.directory for git since these will be used in multiple places with git
10+
RUN git config --global --add safe.directory '*'
911

1012
RUN locale-gen en_US.UTF-8
1113

manywheel/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ENV LANGUAGE en_US.UTF-8
1111

1212
ARG DEVTOOLSET_VERSION=9
1313
RUN yum install -y wget curl perl util-linux xz bzip2 git patch which perl zlib-devel
14+
# Just add everything as a safe.directory for git since these will be used in multiple places with git
15+
RUN git config --global --add safe.directory '*'
1416
RUN yum install -y yum-utils centos-release-scl
1517
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
1618
RUN yum install -y devtoolset-${DEVTOOLSET_VERSION}-gcc devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ devtoolset-${DEVTOOLSET_VERSION}-gcc-gfortran devtoolset-${DEVTOOLSET_VERSION}-binutils

0 commit comments

Comments
 (0)