Skip to content

Commit

Permalink
Fix issue cleaning up /src
Browse files Browse the repository at this point in the history
```
failed to solve: process "/bin/sh -c sudo rmdir /src" did notcomplete
successfully
```

There seems to be a change in behaviour where this folder is no longer
left behind; possibly docker version related? This change works around
the issue by swallowing the error in case of error.
  • Loading branch information
jovial committed Nov 25, 2022
1 parent d4aa284 commit 0bf6477
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 @@ -89,7 +89,7 @@ RUN --mount=type=ssh,uid=1000 --mount=type=tmpfs,target=/tmp/src --mount=type=bi
rm -rf /stack/kayobe-automation-env/src/kayobe-config

# Symlinking to /src would create a link within the empty directory
RUN sudo rmdir /src
RUN sudo rmdir /src || true

ENV ANSIBLE_ROLES_PATH="/stack/.ansible/kayobe-automation-roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles"
ENV ANSIBLE_COLLECTIONS_PATH="/stack/.ansible/kayobe-automation-collections:~/.ansible/collections:/usr/share/ansible/collections"

0 comments on commit 0bf6477

Please sign in to comment.