Deploy with Docker Compose / deploy (push) Successful in 28s
The sidecar runs as uid 1000 so its commits match the vault's ownership on the host, but alpine/git has no passwd entry for that uid. ssh resolves the calling uid before it does anything else and aborts when it cannot, so every push failed at "No user exists for uid 1000" without reaching the deploy key. Mount a minimal passwd file that defines the uid. SilverBullet's own entrypoint creates the user at boot for the same reason; this container has no entrypoint of its own, so the entry is supplied as a file. Verified on the Pi: with the mount, ssh authenticates as the silverbullet-git deploy key; without it, the uid error reproduces. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BCQFvkvorAw1xwhd5gL2qZ
12 lines
679 B
Plaintext
12 lines
679 B
Plaintext
# Minimal /etc/passwd for the silverbullet-git container.
|
|
#
|
|
# The container runs as uid 1000 (matching the vault's owner on the host) so its
|
|
# commits don't leave root-owned objects in .git. But alpine/git has no passwd
|
|
# entry for that uid, and ssh refuses to start for a uid it cannot resolve --
|
|
# it fails with "No user exists for uid 1000" before it ever tries the key, so
|
|
# every push fails. Mounting this file over /etc/passwd gives ssh something to
|
|
# resolve. SilverBullet's own entrypoint solves the same problem by creating the
|
|
# user at boot; this container has no entrypoint of its own to do that in.
|
|
root:x:0:0:root:/root:/bin/sh
|
|
sbgit:x:1000:1000:sbgit:/tmp:/bin/sh
|