Skip to content

UCSolarCarTeam/mercury-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alpine Linux Build Environment Setup

Step 1: Create Alpine VM

  1. Download the Alpine Linux ISO from https://www.alpinelinux.org/downloads/
  2. Create a new virtual machine using the downloaded image
  3. Boot the VM and run:
    setup-alpine
    Selecting all defaults and set up the disk as sys

Step 2: Configure Package Repositories

Enable the community repository:

vi /etc/apk/repositories

Ensure the community repository line is uncommented.

Step 3: Install Required Packages

apk update
apk add alpine-sdk abuild sudo git build-base

Step 4: Create and Configure Build User

Create a new builder user and grant the necessary permissions:

adduser builder
addgroup builder abuild
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
su builder

Step 5: Generate Build Keys

As the builder user, generate abuild keys and install them:

abuild-keygen -a
sudo cp ~/.abuild/*.rsa.pub /etc/apk/keys/

Step 6: Clone Repository

git clone git@github.com:UCSolarCarTeam/mercury-os.git
cd mercury-os/

Step 7: Build the Package

abuild checksum
abuild -r

The compiled APK package will be located in:

../packages/builder/x86_64/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages