I am using Dagger in a Cluster environment.
- Dagger engine is installed as DaemonSet using the Dagger Helm chart
- Dagger CLI is downloaded in the target POD as initContainer
- setting env var _EXPERIMENTAL_DAGGER_RUNNER_HOST with value: unix:///var/run/dagger/engine.sock
It used to work, but now I have a strange error.
Local modules do work, Remote ones don't
/home/dagger-run # dagger call -m github.com/shykes/daggerverse/hello hello --giant --name internet
✔ connect 0.0s
✘ load module: github.com/shykes/daggerverse/hello 0.6s ERROR
┇ initializing module › ModuleSource.asModule ›
✘ Container.file(path: "typedefs.json"): File! 0.0s ERROR
! failed to add directory "/": failed to copy source directory: failed to copy xattrs: failed to set xattr
"security.selinux" on /var/lib/dagger/worker/snapshots/snapshots/100/fs/hello: permission denied
This does not happen if I clone the repo and run it locally everything is OK.
I am not getting what I am missing since I have not changed anything, I suspect the problem is with the node in EKS, also because the engine is referred from an hostPath volume.
Especially,
- why SELinux issue since I am in alpine
- why it is referring to root folder.
Is anyone experiencing this?