Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(werf-in-image): detected dubious ownership in git repository (#5827)
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed Oct 16, 2023
1 parent 6fb412d commit 2ae94b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/werf-in-image/alpine.Dockerfile
Expand Up @@ -12,6 +12,9 @@ USER build:build
RUN mkdir -p /home/build/.local/share/containers
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
RUN git config --global --add safe.directory '*'

WORKDIR /home/build

ENV WERF_CONTAINERIZED=yes
Expand Down
3 changes: 3 additions & 0 deletions scripts/werf-in-image/centos.Dockerfile
Expand Up @@ -13,6 +13,9 @@ USER build:build
RUN mkdir -p /home/build/.local/share/containers
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
RUN git config --global --add safe.directory '*'

WORKDIR /home/build

ENV WERF_CONTAINERIZED=yes
Expand Down
3 changes: 3 additions & 0 deletions scripts/werf-in-image/fedora.Dockerfile
Expand Up @@ -13,6 +13,9 @@ USER build:build
RUN mkdir -p /home/build/.local/share/containers
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
RUN git config --global --add safe.directory '*'

WORKDIR /home/build

ENV WERF_CONTAINERIZED=yes
Expand Down
3 changes: 3 additions & 0 deletions scripts/werf-in-image/ubuntu.Dockerfile
Expand Up @@ -15,6 +15,9 @@ USER build:build
RUN mkdir -p /home/build/.local/share/containers
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
RUN git config --global --add safe.directory '*'

WORKDIR /home/build

ENV WERF_CONTAINERIZED=yes
Expand Down

0 comments on commit 2ae94b4

Please sign in to comment.