Skip to content

Conversation

Vylyne
Copy link

@Vylyne Vylyne commented Sep 27, 2025

FEAT: Add PUID and GUID Environment Variable Support

  • Renames original entrypoint.sh to run-imapfilter.sh

  • Remove UserAdd from Dockerfile, and remove extra run

    • Remove: UserAdd function from Dockerfile
    • Remove: extra run directive
    • Add: shadow package to runtime for adduser, addgroup, and su
  • New entrypoint handles PUID and PGID Variables

    • Accepts PUID and PGID Environment Variables.
    • Default PUID and PGID to 1001 to maintain backwards compatibility and make variables optional
    • Checks for existing group and ID, then creates/recreates if it does not exist or match PGID
    • Checks for existing user, id, and default group id, then creates/recreates as necessary
    • Changes ownership of /opt/imapfilter/config and /home/imapfilter

    superseeds PUID and PGID Environment Variable Support and some changes changes to VCS functions #77

- Remove: UserAdd function from Dockerfile
- Remove: extra run directive
- Add: shadow packge to runtime for adduser, addgroup, and su
- Accepts PUID and PGID Environment Variables.
- Default PUID and PGID to 1001 to maintain backwards compatability and make variables optional
- Checks for existing group and ID, then creates/recreates if it does not exist or match PGID
- Checks for existing user, id, and default group id, then creates/recreates as necessary
- Changes ownership of /opt/imapfilter/config and /home/imapfilter
**FEAT: Add PUID and GUID Environment Variable Support**

* **Renames original `entrypoint.sh` to `run-imapfilter.sh`**
* **Remove UserAdd from Dockerfile, and remove extra run**
  * **Remove**: UserAdd function from Dockerfile
  * **Remove**: extra run directive
  * **Add**: shadow package to runtime for adduser, addgroup, and su
* **New entrypoint handles PUID and PGID Variables**
  * Accepts PUID and PGID Environment Variables.
  * Default PUID and PGID to 1001 to maintain backwards compatibility and make variables optional
  * Checks for existing group and ID, then creates/recreates if it does not exist or match PGID
  * Checks for existing user, id, and default group id, then creates/recreates as necessary
  * Changes ownership of /opt/imapfilter/config and /home/imapfilter
Updated readme to include PUID and PGID environment variables.

Signed-off-by: Vylyne <[email protected]>
@Vylyne Vylyne marked this pull request as ready for review September 27, 2025 14:43
@Vylyne Vylyne deleted the branch ntnn:main September 27, 2025 16:31
@Vylyne Vylyne closed this Sep 27, 2025
@Vylyne Vylyne deleted the main branch September 27, 2025 16:31
@Vylyne Vylyne reopened this Sep 27, 2025
@Vylyne
Copy link
Author

Vylyne commented Sep 27, 2025

sorry renamed the branch and restructured my fork branches.

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.

1 participant