Initial commit
This commit is contained in:
parent
19b2853f80
commit
9693efc107
@ -139,13 +139,12 @@ else
|
|||||||
fi
|
fi
|
||||||
ARCH=$(dpkg --print-architecture)
|
ARCH=$(dpkg --print-architecture)
|
||||||
HOSTNAME=Gitlab
|
HOSTNAME=Gitlab
|
||||||
RAM="4098"
|
RAM=4098
|
||||||
SWAP="2048"
|
SWAP=2048
|
||||||
TEMPLATE_STRING="local:vztmpl/${TEMPLATE}"
|
TEMPLATE_STRING="local:vztmpl/${TEMPLATE}"
|
||||||
pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \
|
pct create $CTID $TEMPLATE_STRING -arch $ARCH -features nesting=1 \
|
||||||
-hostname $HOSTNAME -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \
|
-hostname $HOSTNAME --memory=$RAM --swap=$SWAP -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1 \
|
||||||
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, \
|
-ostype $OSTYPE -rootfs $ROOTFS,size=$DISK_SIZE -storage $STORAGE, >/dev/null
|
||||||
-memory=$RAM, -swap=$SWAP >/dev/null
|
|
||||||
|
|
||||||
# Modify LXC permissions to support Docker
|
# Modify LXC permissions to support Docker
|
||||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user