Skip to content

Build alpine packages

Tristan Israël edited this page Jan 23, 2026 · 6 revisions

This page explains how to build or rebuild Alpine packages for your products.

References

Setting Up an Maintainer workstation

  • Install an Alpine Standard virtual machine
  • Create a user named admin
  • Enable the community repository in /etc/apk/repositories
  • Run: # apk update
  • Install sudo and visudo:
    $ sudo apk add sudo
  • Add the admin user to the sudoers group using:
    $ sudo visudo
  • Install the Alpine SDK:
    $ sudo apk add alpine-sdk
  • Add the admin user to the abuild group:
    $ sudo addgroup admin abuild
  • Generate an abuild key pair:
    $ abuild-keygen -a -i
    When prompted, provide the following path: /home/admin/.abuild/panoptiscan.rsa
  • Install Git:
    $ sudo apk add git

Warning

Always use rsync instead of scp when copying Alpine packages to the build VM.
scp breaks symbolic links, which may lead to build errors or inconsistencies.

Building Packages

  • Clone the Panoptiscan repository:
    $ cd ; git clone <repository_url>
  • Navigate to the build folder:
    $ cd ~/PSEC/setup/packages/
  • Choose a package directory:
    $ cd <package_name>
  • Start the build process:
    $ abuild checksum && abuild -r

Package-Specific Instructions

This section outlines additional instructions for specific packages, if needed.

Implement an automatic building environment

The best way to maintain a product is by using an environement which builds all the packages in one time and runs a test suite to validate them. This sections show a way to achieved this.

(to be completed).

Clone this wiki locally