Alpine Linux
The commands below use OpenRC. Select sudo if it is configured for your account, or root when already in a root shell. Note:
- Alpine Linux 3.18 or newer verison has full eBPF support out-of-box, older version of Alpine Linux need to build kernel by yourself.
- From version 3.20, Alpine Linux has officially disabled some features dae needed beacuse of Alpine Linux's cross CPU architectures compatibility, so only
linux-virtcan be used to run dae defaultly. Forlinux-ltsorlinux-edge, you should build the kernel by yourself. - This tutorial is for Alpine Linux 3.20 and newer.
Enable Community Repo
Run setup-apkrepos command, then you'll get a menu list like this:
sudo setup-apkrepossetup-apkrepos (f) Find and use fastest mirror
(s) Show mirrorlist
(r) Use random mirror
(e) Edit /etc/apk/repositories with text editor
(c) Community repo enable
(skip) Skip setting up apk repositoriesThen input c to enable community repo.
Enable CGroups
Enable cgroups service:
sudo rc-update add cgroups bootrc-update add cgroups bootMount bpf
Edit /etc/init.d/sysfs:
sudo vi /etc/init.d/sysfsvi /etc/init.d/sysfsAdd the following to the mount_misc section:
# Setup Kernel Support for bpf file system
if [ -d /sys/fs/bpf ] && ! mountinfo -q /sys/fs/bpf; then
if grep -qs bpf /proc/filesystems; then
ebegin "Mounting eBPF filesystem"
mount -n -t bpf -o ${sysfs_opts} bpffs /sys/fs/bpf
eend $?
fi
fiBe careful that the format of the script /etc/init.d/sysfs must be correct, or sysfs service will be failed.
Apply the boot configuration
Restart after configuring cgroups and sysfs so their boot-time mounts take effect before starting dae.
sudo rebootrebootInstall dae
Installer: https://github.com/daeuniverse/dae-installer/
This installer offered an OpenRC service script of dae, after installation, you should add a config file to /usr/local/etc/dae/config.dae, then set its permission to 600 or 640:
sudo chmod 640 /usr/local/etc/dae/config.daechmod 640 /usr/local/etc/dae/config.daeAfter completing Minimal configuration, see Service management to start, enable, reload or restart dae.
Source: dae upstream · AGPL-3.0 license.
