aboutsummaryrefslogtreecommitdiff
path: root/arch-base-mongodb
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2016-01-29 19:19:02 +0700
committerMhd Sulhan <ms@kilabit.info>2016-01-29 19:19:02 +0700
commit0cbab491b606f0942a35e44ac8d22227a5c51cb4 (patch)
tree240bd2fef8def62ff3232aeb010f0ef1e2840f4a /arch-base-mongodb
parentbdad0b6e1698b8062f5422f0a855b46605747546 (diff)
downloadarch-docker-0cbab491b606f0942a35e44ac8d22227a5c51cb4.tar.xz
Update all variable in images directory to use latest modification.
Diffstat (limited to 'arch-base-mongodb')
-rw-r--r--arch-base-mongodb/mongodb.conf2
-rwxr-xr-xarch-base-mongodb/vars.sh16
2 files changed, 9 insertions, 9 deletions
diff --git a/arch-base-mongodb/mongodb.conf b/arch-base-mongodb/mongodb.conf
index beeaa96..af18e39 100644
--- a/arch-base-mongodb/mongodb.conf
+++ b/arch-base-mongodb/mongodb.conf
@@ -9,6 +9,8 @@ storage:
directoryPerDB: true
journal:
enabled: true
+ mmapv1:
+ smallFiles: true
processManagement:
fork: true
net:
diff --git a/arch-base-mongodb/vars.sh b/arch-base-mongodb/vars.sh
index c5bb8cc..bca6d43 100755
--- a/arch-base-mongodb/vars.sh
+++ b/arch-base-mongodb/vars.sh
@@ -1,10 +1,9 @@
#!/bin/zsh
-## Get current directory.
-THISD=${0:a:h}
+HOSTNAME="arch-mongodb"
## The name of docker image.
-IMAGE_NAME="sulhan/arch-mongodb"
+IMAGE_NAME="sulhan/${HOSTNAME}"
##
## List of arguments to be passed when creating images
@@ -26,18 +25,17 @@ PKGS=(binutils coreutils file findutils gzip sed shadow)
PKGS_ADD=(mongodb)
## List of packages to be removed after creating chroot.
-PKGS_REMOVED=(binutils bzip2 db file findutils gdbm gzip less linux-api-header
- pcre perl sed)
+PKGS_REMOVED=(binutils file findutils gzip less sed shadow)
## 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}/")
-FILES+=("${THISD}/mongodb.conf" "${ROOTFS}/etc/")
+FILES=("${PWD}/init.sh" "${ROOTFS}/")
+FILES+=("${PWD}/bootstrap_rootfs.sh" "${ROOTFS}/")
+FILES+=("${PWD}/mongodb.conf" "${ROOTFS}/etc/")
## 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")
+BOOTSTRAP_SCRIPTS=("/bootstrap_rootfs.sh")