deploy.bash 413 Bytes
Newer Older
João Lino's avatar
João Lino committed
1 2 3
#!/bin/bash

install_sw () {
João Lino's avatar
João Lino committed
4
	apt install lxd git
João Lino's avatar
João Lino committed
5 6 7
}

configure_lxd () {
João Lino's avatar
João Lino committed
8 9 10 11 12
	lxd init --preseed < input.yaml
}

lxd_create_net () {
	lxc launch images:alpine/3.13 net
13 14 15 16 17 18

	lxc exec net apk update
	lxc exec net apk upgrade
	lxc exec net apk add git
	lxc exec net git clone https://www.joaolino.com/gitlab/hsrv/deploy.git
	lxc exec net /root/deploy/containers/net/deploy.ash
João Lino's avatar
João Lino committed
19 20 21 22 23
}

#install_sw

#configure_lxd
24 25

#lxd_create_net