/data: The mount point of the repository on the host. export TO=/data/ in the entrypoint.
/log: The mount point of the host directory that save logs. export LOGDIR=/log/ in the entrypoint.
Common Configuration Parameters
Parameter
Description
DEBUG
Set this to true to enable debugging.
BIND_ADDRESS
Set the local ip to be bound. Require --network=host.
OWNER
Set the uid and gid of the process so that the downloaded files wont get messed up. Defaults to 0:0 (aka root:root).
LOG_ROTATE_CYCLE
Specify how many cycle versions of the logfile to be saved. Set this to 0 will disable rotation. Defaults to 0.
REPO
Name of the repository. Required in archvsync.
aptsync
Parameter
Description
APTSYNC_URL
Sets the url of upstream.
APTSYNC_NTHREADS
Defaults to 20.
APTSYNC_UNLINK
Set this to 1 to remove unneeded files automatically. Defaults to 0.
APTSYNC_DISTS
Various distros can be specified in the format ` [...]
Notes: The following mirror.list:
deb-i386 https://apt.dockerproject.org/repo debian-jessie main
deb-amd64 https://apt.dockerproject.org/repo debian-jessie main
deb-armhf https://apt.dockerproject.org/repo raspbian-jessie main testing
Files to be excluded. Defaults to --exclude .~tmp~/.
RSYNC_BLKSIZE
Defaults to 8192.
RSYNC_TIMEOUT
Defaults to 14400.
RSYNC_SPARSE
Defaults to true.
RSYNC_DELAY_UPDATES
Defaults to true.
RSYNC_MAXDELETE
Maximum number of files that can be removed. Defaults to 4000.
RSYNC_RSH
Specify the remote shell, e.g. ssh -i /path/to/key.
rubygems
Parameter
Description
UPSTREAM
Defaults to http://rubygems.org.
stackage
Stackage doesn't need to specify upstream, but this mirror use cabal to install necessary Haskell packages. Replacing default mirror of cabal with faster one will speed up building process.
Read the user guide before writing preferred mirror to config