docs: document the standalone floci-aws binary (#6114)

* docs: document the standalone floci-aws binary

#5844 publishes a standalone floci-aws binary with every release but no
page says so. The installation guide gains a Native binary section: the
asset per platform, download and checksum, cosign and attestation
verification, the glibc 2.34 floor and the macOS quarantine, which
services need Docker and what happens without it, where persistent state
goes and the host-<port> container namespace, configuration, and running
it under systemd or launchd.

It also says the state directory is shared across ports, so two
persistent binaries need their own FLOCI_STORAGE_PERSISTENT_PATH, and a
persistent binary should restart on the port it used before.

The README points at the section, and the Docker images page no longer
says the arm64 baseline build is image-only.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* docs: say where the image listens and which binaries the image ships

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix: report EC2 as metadata only without Docker, and create ~/.local/bin on install

Without a Docker daemon an EC2 launch does not fail by default:
Ec2ContainerManager marks the instance running as metadata only, and
fails the launch only when security-group enforcement is on. The startup
warning listed EC2 with the services that fail on use, and the binary
page did the same. EC2 now joins the metadata-only group, and moves to
the fail-on-use group when enforcement is enabled.

The install steps create ~/.local/bin before installing into it and run
the binary by its full path, and the namespace note says that binaries
on separate hosts sharing a port and a remote daemon need their own
FLOCI_DOCKER_RESOURCE_NAMESPACE.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-25 16:41:47 -04:00
1 parent 13d0452a20
commit 7b9e877f7a
5 files changed
+154 -5

No files matched your search

@@ -13,6 +13,7 @@ import org.jboss.logging.Logger;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Stream;
/**
* Says once, at startup, what an unreachable Docker daemon costs.
@@ -32,11 +33,11 @@ public class DockerAvailabilityReport {
/** Ping Docker, report and carry on: their control plane works without a container. */
static final List<String> METADATA_ONLY = List.of(
"rds", "elasticache", "memorydb", "opensearch", "neptune", "docdb", "msk", "eks",
"timestreaminfluxdb");
"timestreaminfluxdb", "ec2");
/** Run a container per request and fail that request (or its build, task, job) without Docker. */
static final List<String> FAIL_ON_USE = List.of(
"lambda", "ecs", "ec2", "codebuild", "batch", "sagemaker", "appsync", "pipes", "mwaa",
"lambda", "ecs", "codebuild", "batch", "sagemaker", "appsync", "pipes", "mwaa",
"amazonmq", "kinesisanalytics", "redshift", "redshift-serverless", "rds-data", "athena", "ecr",
"codeartifact", "verifiedpermissions");
@@ -60,7 +61,7 @@ public class DockerAvailabilityReport {
void report() {
Set<String> enabled = Set.copyOf(serviceRegistry.getEnabledServices());
List<String> metadataOnly = METADATA_ONLY.stream().filter(enabled::contains).toList();
List<String> metadataOnly = metadataOnly(enabled);
List<String> failOnUse = failOnUse(enabled);
if (metadataOnly.isEmpty() && failOnUse.isEmpty()) {
return;
@@ -76,14 +77,29 @@ public class DockerAvailabilityReport {
metadataOnly, failOnUse);
}
List<String> metadataOnly(Set<String> enabled) {
return METADATA_ONLY.stream()
.filter(enabled::contains)
.filter(service -> !needsDockerWhenConfigured(service))
.toList();
}
List<String> failOnUse(Set<String> enabled) {
return FAIL_ON_USE.stream()
return Stream.concat(METADATA_ONLY.stream().filter(this::needsDockerWhenConfigured), FAIL_ON_USE.stream())
.filter(enabled::contains)
.filter(service -> !runsWithoutLocalDocker(service))
.map(service -> "pipes".equals(service) ? "pipes (Kafka sources)" : service)
.toList();
}
/**
* A metadata-only service that a setting makes fail without Docker: with security-group
* enforcement on, an EC2 launch with no daemon fails instead of running as metadata only.
*/
boolean needsDockerWhenConfigured(String service) {
return "ec2".equals(service) && config.network().securityGroupEnforcement().enabled();
}
/** A service whose container work goes somewhere other than the local daemon. */
boolean runsWithoutLocalDocker(String service) {
return switch (service) {