Skip to content

Commit

Permalink
Fix dockerfile using wrong uid
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Welsh committed Feb 14, 2025
1 parent 93c91f4 commit 678d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/kayobe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RUN chmod 600 /stack/.ssh/config
COPY .automation/utils/kayobe-automation-activate .automation.conf/docker*/kayobe/bin/* /usr/local/bin/

# Control host bootsrap without leaving kayobe-config in the image
RUN --mount=type=ssh,uid=1000 --mount=type=tmpfs,target=/tmp/src --mount=type=bind,source=.,target=/src sudo cp -rfp /src /tmp/ && \
RUN --mount=type=ssh,uid=$KAYOBE_USER_UID --mount=type=tmpfs,target=/tmp/src --mount=type=bind,source=.,target=/src sudo cp -rfp /src /tmp/ && \
sudo chown -Rf stack:stack /tmp/src && \
# Strip the secrets so that we don't need to pass in a vault-password
grep -lR "\$ANSIBLE_VAULT" /tmp/src | xargs rm -f && \
Expand Down

0 comments on commit 678d705

Please sign in to comment.