Run on Alpine Linux
This tutorial covers Alpine Linux 3.20 and later.
- Alpine Linux 3.18 and later have full eBPF support out of the box. Earlier versions require a custom kernel build.
- Starting with Alpine Linux 3.20, some features required by dae are disabled for cross-architecture compatibility. Only
linux-virtruns dae by default;linux-ltsandlinux-edgerequire a custom kernel build.
Enable Community Repo
Run setup-apkrepos to open this menu:
shell
sudo setup-apkreposshell
setup-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 repositoriesEnter c to enable the community repository.
Enable CGroups
Enable the cgroups service:
sh
sudo rc-update add cgroups bootsh
rc-update add cgroups bootMount BPF
Edit /etc/init.d/sysfs:
sh
sudo vi /etc/init.d/sysfssh
vi /etc/init.d/sysfsAdd the following to the mount_misc section:
sh
# 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
fiCheck the syntax in /etc/init.d/sysfs. Errors will cause the sysfs service to fail.
shell
sudo rebootshell
rebootInstall dae
Use dae-installer, which provides an OpenRC service script. After installation, create /usr/local/etc/dae/config.dae and set its permissions to 600 or 640:
sh
sudo chmod 640 /usr/local/etc/dae/config.daesh
chmod 640 /usr/local/etc/dae/config.daeOnce the configuration is ready, start dae:
See Start now.
Start dae at Boot
Use rc-update to enable the dae service:
See Enable at boot.
Source: dae upstream · AGPL-3.0 license.
