A number of permission issues have gone unnoticed,
I became aware of them when I did a fresh build
without cache on a newly installed computer.
When building Docker images, Docker copies
files/folders with the same permissions as they
have on the host machine. Git does not track the
permissions of files except for the executable bit
on files. So depending on who builds the images
files/folders can get different permissions.
This changes it such that the Makefile will ensure
the appropriate permissions are set when building.
This is required as we run services as different
users other than root in the container. Those
users must be able to access and execute certain
files.
A number of permission issues have gone unnoticed, I became aware of them when I did a fresh build without cache on a newly installed computer.
When building Docker images, Docker copies files/folders with the same permissions as they have on the host machine. Git does not track the permissions of files except for the executable bit on files. So depending on who builds the images files/folders can get different permissions.
This changes it such that the Makefile will ensure the appropriate permissions are set when building.
This is required as we run services as different users other than root in the container. Those users must be able to access and execute certain files.