Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set security-opt option with Podman
Without `--security-opt label=disabled` some make commands fail because the container has no access to files in $HOME: ``` $ DOCKER=podman make test <... snip ...> podman run --rm -it --name argocd-test-client -u 1000:1000 -e HOME=/home/user <...snip...> --userns keep-id argocd-test-tools:latest bash -c "make TEST_MODULE= test-local" make: stat: Makefile: Permission denied make: *** No rule to make target 'test-local'. Stop. ``` The container use can't access any file in the mounted volume: ``` user@0878ba4be4ce:/go/src/github.com/argoproj/argo-cd$ ls -l ls: cannot open directory '.': Permission denied ``` Passing `--security-opt label=disabled` runs the container in the SELinux context of the user starting it. This makes the content of the volumes accessible. Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
- Loading branch information