From cfd50b96ad61ded95add8e63afa38708b4a65747 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sun, 3 Dec 2023 19:43:33 +0100 Subject: [PATCH] Updated setup guide to fix networking and missing dependency issues --- docs/PREPARATION.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/PREPARATION.md b/docs/PREPARATION.md index 0c4e107..679d3ae 100644 --- a/docs/PREPARATION.md +++ b/docs/PREPARATION.md @@ -32,6 +32,11 @@ you can enable and start the bridge interface rc-update add dnsmasq.lxcbr0 boot rc-service dnsmasq.lxcbr0 start ``` +**NOTE**: Starting `dnsmasq.lxcbr0` in run-level `boot` didn't work for me, +so I used `default` instead. +The source code block above uses the `boot` run-level, +because the [Alpine Wiki](https://wiki.alpinelinux.org/wiki/LXC#Prepare_network_on_host) says so. + ### Creating the container Because you installed `lxc-templates-legacy-alpine` earlier, @@ -90,8 +95,10 @@ lxc-attach -n srht -- ping example.com The easiest way to deploy sourcehut on the lxc container is to install ansible on the host machine. ``` sh -apk add ansible git # git is required for the next step +apk add ansible git py3-lxc ``` +(git is required to clone the playbook +and we'll `py3-lxc` to easily connect ansible to the lxc container) Now clone this repo and open it ``` sh -- 2.38.5