build(node): package NetBird and JK BMS with pinned shared UI sources

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 00:43:00 +03:00
parent f3d0c25ccd
commit df743a9f6c
15 changed files with 378 additions and 20 deletions
@@ -0,0 +1,29 @@
[Unit]
Description=Mission Core onboard NetBird connection adapter
After=network-online.target netbird.service
Before=mission-core-node.service
[Service]
ExecStart=/usr/bin/python3 -I -B /usr/lib/mission-core-node/netbird_helper.py
Restart=on-failure
RestartSec=3
StateDirectory=mission-core-netbird
StateDirectoryMode=0700
# The vendor CLI mirrors its active profile under XDG_CONFIG_HOME even when
# talking to the daemon. Keep that bookkeeping inside our writable state,
# while /root and operator homes remain inaccessible.
Environment=XDG_CONFIG_HOME=/var/lib/mission-core-netbird/config
RuntimeDirectory=mission-core-netbird
RuntimeDirectoryMode=0755
UMask=0077
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE
MemoryMax=96M
TasksMax=24
[Install]
WantedBy=multi-user.target