-
Notifications
You must be signed in to change notification settings - Fork 0
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.
- https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package
- https://wiki.alpinelinux.org/wiki/Abuild_and_Helpers
- Install an Alpine Standard virtual machine
- Create a user named
admin - Enable the
communityrepository in/etc/apk/repositories - Run:
# apk update - Install
sudoandvisudo:
$ sudo apk add sudo - Add the
adminuser to thesudoersgroup using:
$ sudo visudo - Install the Alpine SDK:
$ sudo apk add alpine-sdk - Add the
adminuser to theabuildgroup:
$ 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
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.
- 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
This section outlines additional instructions for specific packages, if needed.
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).