Build and deploy user-facing frontend (gitea)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
610 B

  1. #!/bin/bash -ex
  2. NAME=$1
  3. DOMAIN=codeberg-testing.org
  4. test -x authorized_keys || cp -v ${HOME}/.ssh/authorized_keys .
  5. ssh-keygen -R ${NAME}
  6. virsh undefine --remove-all-storage ${NAME} || true
  7. virt-install -v \
  8. --virt-type kvm \
  9. --name ${NAME} \
  10. --initrd-inject preseed.cfg \
  11. --initrd-inject authorized_keys \
  12. --location http://http.debian.net/debian/dists/stable/main/installer-amd64/ \
  13. --extra-args "auto console=ttyS0 hostname=${NAME} domain=${DOMAIN}" \
  14. --ram 8192 \
  15. --vcpus 4 \
  16. --disk size=4 \
  17. --memory 1024 \
  18. --graphics none \
  19. --network bridge:lxcbr0,model=virtio \
  20. --os-variant debian10