Fix: Permission issues when running as users with id other than 1000
Description
The current docker containers are run with UID=1000, this works well if you're running as a user with that ID, but if not, you get permission errors. This uses the UID and GID of the current user to get around that.
Supporting information
When running Grove as a user with ID 1001, I faced issues since the user inside docker has the ID 1000 and as such when local folders are mounted, it runs into permission issues.
Testing instructions
Steps to test the changes:
- Try to run grove/tf/tutor commands as a user with ID other than 1000.
- You should run into permission issues.
- Check out this PR and try running those command again.
- You should not get permisssion errors.
Dependencies
None
Screenshots
N.A.
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSION
in ci_vars.yml is updated -
The grove-template repository is updated
Additional context
NA.