**Related issue:** Fully resolves https://github.com/fleetdm/fleet/issues/34591. ## Testing - [X] QA'd all new/changed functionality manually. <img width="533" height="454" alt="Screenshot 2026-07-03 at 10 40 37 AM" src="https://github.com/user-attachments/assets/892fb548-21c6-467c-b270-65f1c9338fdc" /> <img width="1287" height="259" alt="Screenshot 2026-07-03 at 10 41 55 AM" src="https://github.com/user-attachments/assets/d3528b0c-0d05-4ace-8512-ab363241b97c" /> <img width="1077" height="123" alt="Screenshot 2026-07-03 at 10 41 46 AM" src="https://github.com/user-attachments/assets/249e80de-320c-48f3-962a-59c98c736c54" /> <img width="725" height="208" alt="Screenshot 2026-07-03 at 10 41 32 AM" src="https://github.com/user-attachments/assets/361764cf-26fc-4a44-b5d6-489d883a392b" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added CachyOS Linux to rolling-release OS detection and reporting. * Added a CachyOS fleetd package/image variant and a new CachyOS fleetd service for local testing. * **Bug Fixes** * Improved rolling-release OS version labeling for host “Vitals” display. * Updated OS inventory normalization so CachyOS is aggregated with Arch Linux, including correct “rolling” version handling. * **Tests** * Expanded OS version ingest test coverage for rolling-release and CachyOS scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
55 lines
2.0 KiB
Bash
Executable File
55 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
script_dir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
|
|
cd "$script_dir"
|
|
|
|
echo "Building fleetd deb (amd64) package..."
|
|
fleetctl package --type=deb \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.deb \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building fleetd rpm (amd64) package..."
|
|
fleetctl package --type=rpm \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.rpm \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building fleetd pkg.tar.zst (amd64) package..."
|
|
fleetctl package --type=pkg.tar.zst \
|
|
--enable-scripts \
|
|
--fleet-url=https://host.docker.internal:8080 \
|
|
--enroll-secret=placeholder \
|
|
--fleet-certificate=../osquery/fleet.crt \
|
|
--disable-open-folder \
|
|
--outfile=fleet-osquery_amd64.pkg.tar.zst \
|
|
${UPDATE_URL:+--update-url=$UPDATE_URL} \
|
|
${ORBIT_CHANNEL:+--orbit-channel=$ORBIT_CHANNEL} \
|
|
${DESKTOP_CHANNEL:+--desktop-channel=$DESKTOP_CHANNEL} \
|
|
${OSQUERYD_CHANNEL:+--osqueryd-channel=$OSQUERYD_CHANNEL} \
|
|
--debug
|
|
|
|
echo "Building docker images..."
|
|
docker build -t fleetd-ubuntu-24.04 --platform=linux/amd64 -f ./ubuntu-24.04/Dockerfile .
|
|
docker build -t fleetd-fedora-43 --platform=linux/amd64 -f ./fedora-43/Dockerfile .
|
|
docker build -t fleetd-debian-13.4 --platform=linux/amd64 -f ./debian-13.4/Dockerfile .
|
|
docker build -t fleetd-cachyos --platform=linux/amd64 -f ./cachyos/Dockerfile .
|