- Download the Alpine Linux ISO from https://www.alpinelinux.org/downloads/
- Create a new virtual machine using the downloaded image
- Boot the VM and run:
Selecting all defaults and set up the disk as sys
setup-alpine
Enable the community repository:
vi /etc/apk/repositoriesEnsure the community repository line is uncommented.
apk update
apk add alpine-sdk abuild sudo git build-baseCreate a new builder user and grant the necessary permissions:
adduser builder
addgroup builder abuild
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
su builderAs the builder user, generate abuild keys and install them:
abuild-keygen -a
sudo cp ~/.abuild/*.rsa.pub /etc/apk/keys/git clone git@github.com:UCSolarCarTeam/mercury-os.git
cd mercury-os/abuild checksum
abuild -rThe compiled APK package will be located in:
../packages/builder/x86_64/