update readme and fix poetry install

This commit is contained in:
2025-04-25 11:05:20 +02:00
parent e5283bd57a
commit ff5e561df3
2 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
# Build
- Always use the docker build script
- sudo CONTINUE=1 bash build-docker.sh
- sudo bash build-docker.sh
# System
- Extended stage2 with customizations
- this builds a 'lite' version of the system, featuring also basic development tools
- deactivate wifi and bluetooth (wifi can be deactivated, bt has bt-disable overlay)
- install docker
@@ -33,13 +33,18 @@ fi
# Use FIRST_USER_NAME if set, else default to 'pi'
USER_TO_ADD="${FIRST_USER_NAME:-pi}"
usermod -aG "$DOCKER_GROUP" "$USER_TO_ADD" || true
docker compose version
docker run hello-world
# Install Python Poetry (official installer)
curl -sSL https://install.python-poetry.org | python3 -
# Make Poetry available to all users
ln -sf /root/.local/bin/poetry /usr/local/bin/poetry
# Install Python Poetry for caster user (official installer)
sudo -u caster curl -sSL https://install.python-poetry.org | python3 -
# Ensure Poetry's bin directory is in caster's PATH
CASTER_BASHRC="/home/caster/.bashrc"
if ! grep -q 'export PATH="/home/caster/.local/bin:$PATH"' "$CASTER_BASHRC" 2>/dev/null; then
echo 'export PATH="/home/caster/.local/bin:$PATH"' >> "$CASTER_BASHRC"
chown caster: "$CASTER_BASHRC"
fi
# Install WireGuard
apt-get install -y wireguard wireguard-tools