diff --git a/.github/workflows/lxc-build.yml b/.github/workflows/lxc-build.yml index 7d11740..4040944 100644 --- a/.github/workflows/lxc-build.yml +++ b/.github/workflows/lxc-build.yml @@ -19,7 +19,7 @@ jobs: run: | sudo apt update sudo apt install -y golang-go debootstrap rsync gpg squashfs-tools git - sudo go get -v -x github.com/lxc/distrobuilder/distrobuilder + sudo go get -x github.com/lxc/distrobuilder/distrobuilder sudo python3 -m pip install pyyaml # build container - name: Build Artifact diff --git a/container/piston.yaml b/container/piston.yaml index 550c834..b8b3a3c 100644 --- a/container/piston.yaml +++ b/container/piston.yaml @@ -1,14 +1,14 @@ image: - name: ubuntu-disco-x86_64-piston + name: ubuntu-bionic-x86_64-piston distribution: ubuntu - release: focal + release: bionic description: |- Ubuntu {{ image.release }} preconfigured for Piston architecture: x86_64 source: downloader: debootstrap - same_as: gutsy + same_as: bionic url: http://archive.ubuntu.com/ubuntu keyserver: keyserver.ubuntu.com keys: diff --git a/readme.md b/readme.md index 8be5356..8506c0f 100644 --- a/readme.md +++ b/readme.md @@ -141,20 +141,20 @@ cd piston/lxc #### Installation (simple) -- `mkdir -p /var/lib/lxc/piston` -- `cd /var/lib/lxc/piston` - `wget [latest container url] -o container.zip` - `unzip container.zip` -- `tar xzf rootfs.tar.gz` -- `rm rootfs.tar.gz container.zip` +- `lxc-create -n piston -t local -- --metadata meta.tar.xz --fstree rootfs.tar.xz` +- `cd ../lxc && ./start` - Good to go! #### Installation (advanced) -- `cd ../container && ./install.sh` +- Install additional dependencies python3, pip and distrobuilder +- `cd ../container && ./build.sh` - Wait, it may take up to an hour. -- `cd ../lxc && ./start && cd ..` +- `lxc-create -n piston -t local -- --metadata meta.tar.xz --fstree rootfs.tar.xz` +- `cd ../lxc && ./start` - Good to go! Alternatively, see `var/install.txt` for how to build the container manually