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

fix(docker): remove hardcoded USER to restore custom UID/GID support #520

Conversation

JosephKav
Copy link
Collaborator

@JosephKav JosephKav commented Jan 17, 2025

With this, the entrypoint runs as 'argus:argus', so it wouldn't have permissions to change the UID/GID when ARGUS_UID/ARGUS_GID are set. This breaks upgrades as the file would be owned by a different user, so 911:911 wouldn't be able to write to the db.

fixes #519

@JosephKav JosephKav added the bug Something isn't working label Jan 17, 2025
@JosephKav JosephKav merged commit 799a5a6 into master Jan 17, 2025
5 checks passed
@JosephKav JosephKav deleted the 519-bug-upgrade-from-018-to-0193-results-in-read-only-error-to-argusdb branch January 17, 2025 21:04
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.56%. Comparing base (43b1c4c) to head (e420891).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #520   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files         120      120           
  Lines       10279    10279           
=======================================
  Hits        10130    10130           
  Misses        121      121           
  Partials       28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Upgrade from 0.18 to 0.19.3 results in read-only error to argus.db
1 participant