fleet/tools/fleetd-linux/run-fleetd.sh
Lucas Manuel Rodriguez 52948b25af
Update fleetd linux docker images used for testing (#44415)
Removing some unmaintained/old docker images (Amazon Linux and CentOS),
and keeping most used/updated (Debian, Ubuntu, and Fedora).

Use cases for this:
- I used this to test wiping a linux host (without needing to wipe my
VMs).
- Test fleetd on linux amd64 on Apple Silicon (VMs usually are arm64).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
  * Added support for Fedora 43 and Debian 13.4 container images.

* **Bug Fixes**
* Improved environment variable validation and configuration handling in
the fleetd initialization process.
  * Enhanced build process reliability with stricter error handling.

* **Chores**
* Removed support for older container images (Amazon Linux 2023, CentOS
Stream 10, Fedora 41, Debian 12.8).
* Streamlined Docker Compose configuration with improved security
defaults.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-29 15:37:27 -03:00

12 lines
303 B
Bash

#!/bin/bash
set -euo pipefail
: "${ENROLL_SECRET:?ENROLL_SECRET must be set}"
awk -v s="$ENROLL_SECRET" '{gsub(/placeholder/, s)}1' \
/etc/default/orbit > /etc/default/orbit.new \
&& mv /etc/default/orbit.new /etc/default/orbit
set -a; . /etc/default/orbit; set +a
exec /opt/orbit/bin/orbit/orbit