From 1611d9d86004c754aba1998a56057f6b2fbe9ad6 Mon Sep 17 00:00:00 2001 From: Sthopeless Date: Fri, 7 May 2021 15:09:44 +0200 Subject: [PATCH] Initial commit --- create_container.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/create_container.sh b/create_container.sh index b55c4ad..c0c08cb 100644 --- a/create_container.sh +++ b/create_container.sh @@ -65,7 +65,7 @@ TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null # Download setup script -wget -qL https://git.sthopeless.com/sthope/proxmox_portainer/raw/branch/master/setup.sh +wget -qL https://git.sthopeless.com/sthope/proxmox_docker_gitlab/raw/branch/master/setup.sh # Detect modules and automatically load at boot load_module aufs @@ -142,7 +142,8 @@ HOSTNAME=Gitlab 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 >/dev/null + -ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, \ + memory=4096, swap=2048 >/dev/null # Modify LXC permissions to support Docker LXC_CONFIG=/etc/pve/lxc/${CTID}.conf