Last active
July 10, 2021 13:44
-
-
Save am11/a41f1ad432455d84c8823140e5cc4b06 to your computer and use it in GitHub Desktop.
Setup Alpine Linux aports builder workbench
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
apk update | |
apk --no-cache add alpine-sdk coreutils cmake less nano openssh sudo | |
adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D builder | |
echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
mkdir /packages | |
chown builder:abuild /packages | |
su builder | |
abuild-keygen -anq | |
cd ~ | |
ssh-keygen -t ed25519 | |
eval $(ssh-agent -s) | |
git clone https://gitlab.alpinelinux.org/alpine/aports --recursive | |
cd aports | |
git config user.email abc@example.com | |
git config user.name abc | |
sudo cp ~/.abuild/*.pub /etc/apk/keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment