Skip to content

martinussuherman/alpine-tz-ep

 
 

Repository files navigation

martinussuherman/alpine-tz-ep


Important: this repository will receive no more update and will be archived, new development goes to: https://github.com/martinussuherman/alpine

What is this image for ?

This is an Alpine Linux or Minimal Alpine Linux image with glibc based image that bundles tzdata, su-exec, and some useful entrypoint scripts.


  • /create_user_group_home.sh

    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 (default docker-user), with uid from environment variable EUID (default 1001).

    Group created from environment variable EGROUP (default docker-group), with gid from environment variable EGID (default 1001).

    Home directory created from environment variable EHOME (default /home/docker-user).

    If variable ECHOWNHOME equals yes then the home directory will be chown'ed to EUSER:EGROUP


  • /chown_paths.sh

    Chown directories in ECHOWNDIRS, create them if not exist. Chown files in ECHOWNFILES, create them if not exist.



  • /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 executes crond 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 uses exec to exec $ENTRYPOINT_COMMAND with the given parameters (as root).

Packages

 
 
 

Languages

  • Shell 72.4%
  • Dockerfile 27.6%