Important: this repository will receive no more update and will be archived, new development goes to: https://github.com/martinussuherman/alpine
This is an Alpine Linux or Minimal Alpine Linux image with glibc based image that bundles tzdata, su-exec, and some useful entrypoint scripts.
-
Creates user with userid, group, groupid and home directory. The group and the home directory are assigned to the user, with
/sbin/nologin
as the default shell.User created from environment variable
EUSER
(defaultdocker-user
), with uid from environment variableEUID
(default1001
).Group created from environment variable
EGROUP
(defaultdocker-group
), with gid from environment variableEGID
(default1001
).Home directory created from environment variable
EHOME
(default/home/docker-user
).If variable
ECHOWNHOME
equals yes then the home directory will be chown'ed toEUSER
:EGROUP
-
Chown directories in
ECHOWNDIRS
, create them if not exist. Chown files inECHOWNFILES
, create them if not exist.
-
/entrypoint_su-exec.sh [command] [params...]
First creates user, group and home directory, by executing
/create_user_group_home.sh
. Then usessu-exec
to exec$ENTRYPOINT_COMMAND
with the given parameters as the user$EUSER
.see martinussuherman/alpine-tz-ep-code-server to see this entryoint in action.
-
/entrypoint_crond.sh [params...]
First creates user, group and home directory, by executing
/create_user_group_home.sh
.
Then sets the crontab file$CROND_CRONTAB
as the crontab of the user$EUSER
.
Finally executescrond
with the given parameters.see farmcoolcow/rclone-cron to see this entryoint in action.
-
/entrypoint_exec.sh [command] [params...]
First creates user, group and home directory, by executing
/create_user_group_home.sh
. Then usesexec
to exec$ENTRYPOINT_COMMAND
with the given parameters (asroot
).