From a331b623153da8c1c63b36ae184cb7bcdedc24e5 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Thu, 28 Jan 2021 13:32:55 +1300 Subject: [PATCH] Install LXC in workflow --- .github/workflows/lxc-build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/lxc-build.yml b/.github/workflows/lxc-build.yml index ce931f5..a7c21a9 100644 --- a/.github/workflows/lxc-build.yml +++ b/.github/workflows/lxc-build.yml @@ -19,6 +19,14 @@ jobs: - name: Validate Container run: packer validate piston.pkr.hcl working-directory: container + + - name: Install LXC + run: | + apt install -y lxc lxc-templates debootstrap libvirt0 + echo "lxc.net.0.type = veth" > /etc/lxc/default.conf + echo "lxc.net.0.link = lxcbr0" >> /etc/lxc/default.conf + echo "lxc.net.0.flags = up" >> /etc/lxc/default.conf + systemctl start lxc-net # build container - name: Build Artifact