Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Make segmenter run as user pi - #74

Merged
ethanjli merged 9 commits into
mainfrom
fix/segmenter-dir-permissions
Feb 24, 2025
Merged

ethanjli merged 9 commits into
mainfrom
fix/segmenter-dir-permissions

Conversation

@ethanjli

@ethanjli ethanjli commented Feb 24, 2025 •

Copy link
Copy Markdown
Member

This PR is part of fairscope/PlanktoScope#538 to make the /home/pi/data directory - including its subdirectories - have ownership by the pi user.

This PR also fixes a bug discovered during testing, in which reuse of an already-used acquisition ID did not correctly terminate data acquisition (likely a regression introduced by #19)

This PR also simplifies the pyproject.toml files by removing support for downloading 32-bit Python package wheels from https://www.piwheels.org/, following up on PlanktoScope OS v2024.0.0-beta.0's deprecation of support for 32-bit base OS images.

@ethanjli
ethanjli marked this pull request as ready for review February 24, 2025 22:57
@ethanjli
ethanjli enabled auto-merge February 24, 2025 23:00
@ethanjli

ethanjli commented Feb 24, 2025 •

Copy link
Copy Markdown
Member Author

I tested this and everything seems to work fine! https://github.com/PlanktoScope/pallet-segmenter requires a workaround to Docker creating bind mounts with root ownership; the workaround is to manually create the bind-mounted directories as the non-root user (i.e. with UID 1000). This workaround is also performed in the OS setup scripts as changed in fairscope/PlanktoScope#538 .

@ethanjli
ethanjli added this pull request to the merge queue Feb 24, 2025
Merged via the queue into main with commit be7f686 Feb 24, 2025
@ethanjli
ethanjli deleted the fix/segmenter-dir-permissions branch February 24, 2025 23:06
@ethanjli ethanjli mentioned this pull request Apr 9, 2025
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant