agenta
agenta copied to clipboard
[Bug] Agenta-cli does not grant sufficient access right when building from a Windows File System
Describe the bug For reasons obscure to me, when trying to build a variant from Windows (or WSL), the automatically created entrypoint.sh does not have execution permission. Meaning the server will fail to run the newly created image because of a
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./deployment-service": permission denied: unknown.
To Reproduce Steps to reproduce the behavior:
- Locally host agenta 0.13.8 (in my case, a debian VM running agenta with forwarded ports)
- From either pure windows or WSL run
agenta init
- Select local machine
- Select any template
- Run
agenta variant serve app.py
Expected behavior The container should be able to run, and the server return a 200.
Desktop (please complete the following information):
- OS: Windows 10 + WSL2 Ubutnu
I suspect adding a RUN ["chmod", "+x", "/entrypoint.sh"] to the Dockerfile template would be enough to fix this, but I'll be unable to reproduce for a few days.
I'm not used to opening issues, let me know if there's anything I can do to improve it :)