From 7f28bdbe56a26de2661612c1f3dfb86692715b27 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 4 Dec 2023 09:31:50 +0100 Subject: [PATCH] Add a setup script --- abuild.sh | 2 ++ home/.abuild/abuild.conf | 2 +- home/setup.sh | 8 ++++++++ repositories | 2 ++ world | 11 +++++++++++ 5 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 home/setup.sh create mode 100644 repositories create mode 100644 world diff --git a/abuild.sh b/abuild.sh index f675705..7b6bdfa 100755 --- a/abuild.sh +++ b/abuild.sh @@ -4,5 +4,7 @@ sudo docker run -i \ -v ./keys:/etc/apk/keys \ -v ./cache:/var/cache/distfiles \ -v ./home:/home/buildozer \ + -v ./repositories:/etc/apk/repositories \ + -v ./world:/etc/apk/world \ -t alpinelinux/build-base:latest \ /bin/ash diff --git a/home/.abuild/abuild.conf b/home/.abuild/abuild.conf index f5e7242..6605948 100644 --- a/home/.abuild/abuild.conf +++ b/home/.abuild/abuild.conf @@ -1,4 +1,4 @@ PACKAGER="Aaron Fischer " -REPODEST="$HOME/packages" +REPODEST="$HOME/aports" USE_COLORS=force PACKAGER_PRIVKEY="/home/buildozer/.abuild/mail@aaron-fischer.net-656d83af.rsa" diff --git a/home/setup.sh b/home/setup.sh new file mode 100755 index 0000000..bedc5f4 --- /dev/null +++ b/home/setup.sh @@ -0,0 +1,8 @@ +#!/bin/ash + +# Install needed packages from /etc/apk/world +doas apk -U --allow-untrusted upgrade + +# Clone/Fetch the aports tree +cd aports || (git clone https://gitlab.alpinelinux.org/alpine/aports && cd aports) +git fetch diff --git a/repositories b/repositories new file mode 100644 index 0000000..daef74a --- /dev/null +++ b/repositories @@ -0,0 +1,2 @@ +https://dl-cdn.alpinelinux.org/alpine/edge/main +https://dl-cdn.alpinelinux.org/alpine/edge/community diff --git a/world b/world new file mode 100644 index 0000000..1951f4f --- /dev/null +++ b/world @@ -0,0 +1,11 @@ +alpine-baselayout +alpine-keys +alpine-sdk +apk-tools +busybox +doas +libc-utils +lua-aports +neovim +git +pigz