Conversation
0.2.0-rc.1
The CLI now requires a subcommand (e.g. `zainod start`). This change: - Adds entrypoint.sh that creates writable directories with correct ownership before dropping privileges to the non-root user - Uses ENTRYPOINT for the script and CMD for the default subcommand - Follows zebra's pattern for handling volume mount permissions - Adds XDG_RUNTIME_DIR support to the xdg module for cookie paths - Refactors default_ephemeral_cookie_path() to use the xdg module Docker usage: - `docker run zaino` → runs `zainod start` - `docker run zaino --help` → shows help - `docker run zaino generate-config` → generates config Note: Custom paths set via TOML config file require the user to ensure those directories exist with appropriate permissions.
- Entrypoint now skips chown on read-only mounts instead of failing - Added test_environment/test-docker-permissions.sh for local testing
Create symlinks in the container so Docker users can mount to simple paths (/app/config, /app/data) while zaino continues using XDG defaults internally: - /app/config -> ~/.config/zaino - /app/data -> ~/.cache/zaino Updated entrypoint to handle /app/* paths directly and updated test script and documentation to use the new paths. Fixes: #876
fix(docker): use ENTRYPOINT/CMD split with privilege dropping
Move entrypoint script from /usr/local/bin/entrypoint.sh to /entrypoint.sh following the common Docker convention used by official images (postgres, nginx, redis). This makes it clear the script is container infrastructure, not an application binary. Fixes #879
fix: version bump, startup logging, and entrypoint location
|
there's a problem with this flow i just realised about. pushing the |
Hotfix: sync bugs and unecessary lints
Ye this is why I push for having a more straightforward freeze on dev while we are in the release process as it gets complicated trying to maintain multiple branches and often extra things get added that were not meant to be (and may not be as tested as we would like for a stable release). It is also easy for subtle bug fixes to get lost when dealing with conflicts between the two branches. |
No description provided.