aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2016-01-29 12:24:06 +0700
committerMhd Sulhan <ms@kilabit.info>2016-01-29 12:24:06 +0700
commitad041e3724f90dc6b509a8bfbe6620feba6f45cd (patch)
tree877a33f6bbf9a02809cf997b717dc9d1b22e0bf0
parent7aa08d6583be57195d53f3b7337b6264ff0d600f (diff)
downloadarch-docker-ad041e3724f90dc6b509a8bfbe6620feba6f45cd.tar.xz
arch-base-template: update vars based on scripts changes.
-rwxr-xr-xarch-base-template/vars.sh40
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")