self-update no longer fails at the updater step on baseline (old x86_64) images

This commit is contained in:
Jarek Krochmalski committed 2026-09-12 16:24:13 +02:00
1 parent 56c132a7a1
commit 87a5ed950d
4 files changed
+63 -1

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
/**
* Which dockhand-updater sidecar image self-update should launch.
*
* The default updater is Wolfi-based (compiled for x86-64-v2). On old x86_64 CPUs
* without v2 - the same hardware that runs the baseline Dockhand image
* (DOCKHAND_VARIANT=baseline) - the Wolfi updater can't exec and Docker reports exit
* 127 at "Launching updater", so self-update is broken. Those hosts must pull the
* `-baseline` (Alpine/musl) updater instead, mirroring the backup helper's variant
* split (see restic.ts HELPER_VARIANT_SUFFIX).
*/
export function updaterImageForVariant(variant: string | undefined): string {
const suffix = variant === 'baseline' ? '-baseline' : '';
return `fnsys/dockhand-updater:latest${suffix}`;
}