~comcloudway/builds.sr.ht

33de5930a8b763a7277c7175f38f466640bb30a5 — Drew DeVault 5 years ago 7db85ac
Bump resource limits on build VMs
1 files changed, 4 insertions(+), 3 deletions(-)

M images/control
M images/control => images/control +4 -3
@@ 46,16 46,17 @@ _docker_boot() {
		-v "$self/$base":/base:ro \
		--mount type=tmpfs,destination=/var/tmp \
		--device /dev/kvm \
		--cpus=1 \
		--cpus=2 \
		-p 127.0.0.1:$port:$port \
		--rm \
		--name "builds_job_${BUILD_JOB_ID:-unknown_$(date +"%s")}" \
		qemu /bin/${qemu:-qemu-system-$arch} \
		-m ${MEMORY:-2048} \
		-m ${MEMORY:-4096} \
		-net nic,model=virtio -net user,hostfwd=tcp::$port-:22 \
		-display none \
		-device virtio-rng-pci \
		-device virtio-balloon \
		-smp cpus=2 \
		-drive file="$wd/$arch/root.img.qcow2",media=disk,snapshot=on,${driveopts:-if=virtio} \
		"$@" > /tmp/docker-$port.id
}


@@ 63,7 64,7 @@ _docker_boot() {
_qemu_boot() {
	${qemu:-qemu-system-$arch} \
		-pidfile /tmp/qemu-$port.id \
		-m ${MEMORY:-2048} \
		-m ${MEMORY:-4096} \
		-net nic,model=virtio -net user,hostfwd=tcp::$port-:22 \
		-display none \
		-device virtio-rng-pci \