aboutsummaryrefslogtreecommitdiff
path: root/arch-base-template/vars.sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch-base-template/vars.sh')
-rwxr-xr-xarch-base-template/vars.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/arch-base-template/vars.sh b/arch-base-template/vars.sh
index 4057f0e..a24329f 100755
--- a/arch-base-template/vars.sh
+++ b/arch-base-template/vars.sh
@@ -1,8 +1,7 @@
#!/bin/zsh
## Default environment if its not set
-export HOSTNAME="arch-base-template"
-
+HOSTNAME="arch-base-template"
#export LANG=C.UTF-8
#export BOOT_LANG=en_GB.UTF-8
#export TIMEZONE=UTC
@@ -19,17 +18,21 @@ export HOSTNAME="arch-base-template"
#ROOTFS_SIZE=400M
## List of packages to be installed.
+## Here we provided the minimal base packages. You can add your package in here
+## by using `+=` syntax or use `PKGS_ADD`.
PKGS=(coreutils binutils findutils sed gzip file)
## List of packages to be installed after PKGS.
PKGS_ADD=()
## List of packages to be removed after creating chroot.
-PKGS_REMOVED=(file gzip sed findutils less bzip2 pcre binutils perl db gdbm
- linux-api-headers)
+PKGS_REMOVED=(file gzip sed findutils less bzip2 binutils)
+## List of packages to be removed without checking their dependencies.
+## Be careful, because this can make some of your application does not run.
+PKGS_REMOVED_FORCE=(linux-api-headers perl db gdbm pcre)
## 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}/init.sh" "${ROOTFS}/")
FILES+=("${PWD}/bootstrap_rootfs.sh" "${ROOTFS}/")
## List of script that will be running on rootfs after package has been
@@ -50,3 +53,12 @@ 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 backed up from rootfs to local before creating
+## an image.
+##
+## Example:
+## IMAGE_FILES_BAK=("src" "dst")
+##
+IMAGE_FILES_BAK=()