Browse Source

Disable Git top-level directory owner check (#2559)

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
Shuhei Kitagawa 2 years ago
parent
commit
9cef707f10
2 changed files with 4 additions and 1 deletions
  1. 3 0
      hack/api-docs/Dockerfile
  2. 1 1
      hack/api-docs/Makefile

+ 3 - 0
hack/api-docs/Dockerfile

@@ -25,3 +25,6 @@ RUN apk add -U --no-cache \
     gcc \
     diffutils
 RUN pip3 install -r /requirements.txt
+# Disable the top-level directory owner check
+# https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
+RUN git config --system --add safe.directory '*'

+ 1 - 1
hack/api-docs/Makefile

@@ -42,7 +42,7 @@ all: build
 
 .PHONY: image
 image:
-	$(DOCKER) build -t $(MKDOCS_IMAGE) --build-arg USER_ID=$(UID) -f Dockerfile .
+	$(DOCKER) build -t $(MKDOCS_IMAGE) -f Dockerfile .
 
 .PHONY: build
 build: image generate $(SOURCES)