- Shell 67.2%
- Makefile 21%
- Dockerfile 11.8%
|
All checks were successful
Docker Build / build (push) Successful in 1m38s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .dockerignore | ||
| Dockerfile | ||
| Makefile | ||
| README.md | ||
| rsync-entrypoint | ||
rsync
A simple container which provides an SSH server and has rsync installed.
This is based on https://code.jorgensen.org.uk/karl/ssh-container - see the README.md there for details about how to configure SSH keys.
This is intended as a simple utility to allow users to update files in e.g. a volume.
For most use cases we want a use a non-root user for access. This is controlled through environment variables:
-
USER_NAMEspecifies the username to be created. If this is not set, no user will be created. -
USER_ID(optional) the numeric ID of the user. If not set, the container will choose a UID. Note that a container-chosen UID is not guarantteed to be consistent across invocations or container versions. -
HOMEDIR(optional) The$HOMEdirectory of the user. If not set, a suitable default will be used. -
USER_SHELL(optional) - the user's shell. -
GROUP_NAME(optional) name of the user's primary group -
GROUP_ID(optional) numeric ID ofGROUP_NAME -
USER_COMMENT(optional) the comment (a.k.a. GECOS) information for the user. -
USER_PUBKEY: The user's public key. This will be what ends up in the user's.ssh/authorized_keysfile. This may contain newlines, which will allow for multiple keys.To limit the user to running
rsync(or some other command), this can be done using the usual SSH facilities - see the man page for SSHD(8) - the AUTHORIZED_KEYS FILE FORMAT section.
NOTE: The user will be configured to not allow password-based
logins. So setting USER_PUBKEY is quite essential.