Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update starter site & matomo extra tools & fix permission Bugs #350

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

nigelgbanks
Copy link
Contributor

@nigelgbanks nigelgbanks commented Sep 12, 2024

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.

Required to fix build issue, that was being
covered up by a previously successful cache.
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.
@nigelgbanks nigelgbanks marked this pull request as ready for review September 12, 2024 15:17
@nigelgbanks nigelgbanks mentioned this pull request Sep 12, 2024
@nigelgbanks nigelgbanks changed the title Update Matomo extra tools & Permission Bugs Update starter site & matomo extra tools & fix permission Bugs Sep 12, 2024
Copy link
Contributor

@aOelschlager aOelschlager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this with a new and existing site on isle-dc and it works. I was not able to test Matomo because the current starter site no longer uses it. I could pull from an older starter site commit I believe, if that is needed to be tested.

@nigelgbanks
Copy link
Contributor Author

@aOelschlager thanks! That should be enough testing 😄

@nigelgbanks nigelgbanks merged commit 24f0418 into main Sep 12, 2024
76 checks passed
@nigelgbanks nigelgbanks deleted the update-matomo-extra-tools branch September 12, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants