From 82a6a3284c4de716cc0563269d8060bb75f443b5 Mon Sep 17 00:00:00 2001 From: Sthopeless Date: Fri, 7 May 2021 15:21:58 +0200 Subject: [PATCH] Initial commit --- create_container.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_container.sh b/create_container.sh index 0ca5ec5..02bb8e7 100644 --- a/create_container.sh +++ b/create_container.sh @@ -139,11 +139,13 @@ else fi ARCH=$(dpkg --print-architecture) HOSTNAME=Gitlab +RAM=4098 +SWAP=2048 TEMPLATE_STRING="local:vztmpl/${TEMPLATE}" pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \ -hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \ -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, \ - -memory=4096, -swap=2048 >/dev/null + -memory=$RAM, -swap=$SWAP >/dev/null # Modify LXC permissions to support Docker LXC_CONFIG=/etc/pve/lxc/${CTID}.conf