diff options
Diffstat (limited to 'arch-base-template/vars.sh')
| -rwxr-xr-x | arch-base-template/vars.sh | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/arch-base-template/vars.sh b/arch-base-template/vars.sh index d6eb944..4057f0e 100755 --- a/arch-base-template/vars.sh +++ b/arch-base-template/vars.sh @@ -1,7 +1,16 @@ #!/bin/zsh -## Get current directory. -THISD=${0:a:h} +## Default environment if its not set +export HOSTNAME="arch-base-template" + +#export LANG=C.UTF-8 +#export BOOT_LANG=en_GB.UTF-8 +#export TIMEZONE=UTC +#export LOCALES=( +# "en_GB.UTF-8 UTF-8" +# "en_US.UTF-8 UTF-8" +#) + ## The size of rootfs in memory. ## Remember that we use tmpfs to speedup installation and copying. @@ -17,6 +26,21 @@ PKGS_ADD=() PKGS_REMOVED=(file gzip sed findutils less bzip2 pcre binutils perl db gdbm linux-api-headers) +## List of files that will be copied from current directory to rootfs +## The init.sh file is used to run the image. +## Format: source destination. +FILES+=("${PWD}/init.sh" "${ROOTFS}/") +FILES+=("${PWD}/bootstrap_rootfs.sh" "${ROOTFS}/") + +## List of script that will be running on rootfs after package has been +## installed. +## The script path is relative to rootfs. +## Do not use the name bootstrap.sh because it was preserved for main script. +BOOTSTRAP_SCRIPTS=("/bootstrap_rootfs.sh") + +## +## DOCKER RELATED +## ## The name of docker image. IMAGE_NAME="username/imagename" @@ -26,15 +50,3 @@ IMAGE_NAME="username/imagename" ## IMAGE_ARGS=(-c="VOLUME /var/lib/postgres" -c="EXPOSE 5432" -c="CMD /init.sh") ## IMAGE_ARGS=(-c="CMD /init.sh") - -## List of files that will be copied from current directory to rootfs -## The init.sh file is used to run the image. -## Format: source destination. -FILES+=("${THISD}/init.sh" "${ROOTFS}/") -FILES+=("${THISD}/bootstrap_rootfs.sh" "${ROOTFS}/") - -## List of script that will be running on rootfs after package has been -## installed. -## The script path is relative to rootfs. -## Do not use the name bootstrap.sh because it was preserved for main script. -BOOTSTRAP_S+=("/bootstrap_rootfs.sh") |
