Config
Following configuration variables are supported and can be overwritten in ~/.docker-mlrc
.docker-mlrc
# basic configuration
DEF_SERVER='helena.ti.bfh.ch' # volume download server
DEF_SERVER_AD="$DEF_SERVER-ad" # volume download server alias for admin ssh config (admins only)
DEF_ADMIN_USER="$USER" # admin user and owner of volumes
DEF_DOCKER_RUNAS='root' # docker command user: <'root'|'admin'|'user'> (option 'user' runs docker as the docker-ml command user)
# script data directories
DIR_VOLUMES="$HOME/.docker-ml/volumes" # managed volumes
DIR_CACHE="$HOME/.docker-ml/cache" # opt file cache
DIR_ALIAS="$HOME/.docker-ml/alias" # alias files
# volume control files
FILE_SECRET_ECRYPTFS="$DIR_SCRIPTCONTROL/ecryptfs-secret.gpg" # encrypted ecryptfs key
FILE_MNTOPT_ECRYPTFS="$DIR_SCRIPTCONTROL/ecryptfs-mountoptions.txt" # additional ecryptfs mount options for volume, single line
# additional script configuration
FILE_CONF_LOCAL="$HOME/.docker-mlrc" # local configuration file, use this file to override values here
DIR_DENYMOUNT="/bin:/sbin:/boot:/dev:/etc:/lib:/proc:/run:/sys:/usr:/var:/lost+found" # colon spearated beginning of absolute paths which are not allowed to be mounted into container
PATH_TMP_TEMPLATE='/tmp/scrtemp_XXXXX' # template for 'mktemp' temporary files/directories
LEN_IMAGEID=12 # truncated length of the docker image id
DEF_DEFAULTMNTOPT_ECRYPTFS="ecryptfs_cipher=aes,ecryptfs_key_bytes=32" # default ecryptfs mount options
# editors
DEF_TEXT_EDITOR="vim"