Skip to content

Commit

Permalink
fix(release): fix /home/build/.werf: permission denied when volume is…
Browse files Browse the repository at this point in the history
… used with werf images (#6382)

Signed-off-by: Fral738 <frolov1998kc@mail.ru>
  • Loading branch information
Fral738 authored Oct 31, 2024
1 parent 822e423 commit 89bbf76
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/werf-in-image/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN setcap cap_setuid+ep /usr/bin/newuidmap && \

RUN adduser -D build && echo 'build:100000:65536' | tee /etc/subuid >/etc/subgid
USER build:build
RUN mkdir -p /home/build/.local/share/containers
RUN mkdir -p /home/build/.local/share/containers && mkdir /home/build/.werf
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/centos.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN setcap cap_setuid+ep /usr/bin/newuidmap && \

RUN useradd build
USER build:build
RUN mkdir -p /home/build/.local/share/containers
RUN mkdir -p /home/build/.local/share/containers && mkdir /home/build/.werf
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/fedora.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN setcap cap_setuid+ep /usr/bin/newuidmap && \

RUN useradd build
USER build:build
RUN mkdir -p /home/build/.local/share/containers
RUN mkdir -p /home/build/.local/share/containers && mkdir /home/build/.werf
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN setcap cap_setuid+ep /usr/bin/newuidmap && \

RUN useradd -m build
USER build:build
RUN mkdir -p /home/build/.local/share/containers
RUN mkdir -p /home/build/.local/share/containers && mkdir /home/build/.werf
VOLUME /home/build/.local/share/containers

# Fix fatal: detected dubious ownership in repository.
Expand Down

0 comments on commit 89bbf76

Please sign in to comment.