You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since I switched my base-image to a non-root user, the bazel installation inside the container exits with: FATAL: Output base directory '/home/jan/.cache/bazel/_bazel_jan' must be readable and writable.
Permissions for the directory are: drwxrwxr-x 6 jan jan 4096 Jul 2 16:47 _bazel_jan
The UID inside and outside of the container are also matching. Is there any way to make dazel work with a non-root user inside the container?
Thanks,
Jan
The text was updated successfully, but these errors were encountered:
I had the same problem, so I checked the permissions in the docker dazel container.
It looks like all the folders above the project belong to the root (the .cache folder in your example), while the files in the project belong to the user from the docker container.
My solution (more of a workaround):
Create a .cache folder in your project folder
Export the variable export DAZEL_BAZEL_USER_OUTPUT_ROOT=PATH_TO_CACHE_FOLDER_IN_YOUR_PROJECT
Hello,
since I switched my base-image to a non-root user, the bazel installation inside the container exits with:
FATAL: Output base directory '/home/jan/.cache/bazel/_bazel_jan' must be readable and writable.
Permissions for the directory are:
drwxrwxr-x 6 jan jan 4096 Jul 2 16:47 _bazel_jan
The UID inside and outside of the container are also matching. Is there any way to make dazel work with a non-root user inside the container?
Thanks,
Jan
The text was updated successfully, but these errors were encountered: