Files
floci/docs/getting-started/installation.md
T
Hector Ventura 96264cde70 chore(build): make the native image build locally and give the Makefile a development workflow (#4271)
The Quarkus container build of the native binary failed on Apple Silicon with
GraalVM's BranchTargetOutOfBoundsException in a generated AwsQueryController
invoker (Quarkus 3.39 turns on -H:+AOTSingleCallsiteInline for Mandrel 25.0.4+),
and the packaged image died at startup because the builder links zlib
dynamically while ubi9-micro ships no libz.so.1. `make native` passes the same
flags CI does (-Ob,-H:-AOTSingleCallsiteInline), stages native/<arch>/ like the
workflow, and copies libz.so.1 from the builder image next to the binary, which
Dockerfile.native-package now puts on LD_LIBRARY_PATH.

The Makefile becomes the entry point for development: help (default), dev,
build, test T=, native (container build), native-host (host GraalVM/Mandrel,
adding the Mandrel-only flag when native-image reports Mandrel), run-native,
native-install (PREFIX, default ~/.local), native-image, native-up/native-down/
native-logs against a new docker/compose.native.yml overlay that carries the
five CI compat env vars, clean-sidecars, clean-volumes (a leftover ECR registry
volume is re-adopted on start and breaks the CDK bootstrap), compat SUITES= and
docker-tests. docker/run-docker-tests.sh gains FLOCI_START=0 and COMPAT_SUITES,
validated against the suite list, and its shell test covers both. Docs:
installation (native section rewritten), docker-images, CONTRIBUTING, AGENTS.
2026-09-23 22:35:24 -04:00

3.2 KiB

Installation

Floci can be run three ways: as a Docker image, as a pre-built native binary, or built from source.

No installation required beyond Docker itself.

docker pull floci/floci:latest

Requirements

  • Docker 20.10+
  • docker compose v2+ (plugin syntax, not standalone docker-compose)

Image Tags

Each tag combines a variant (what's inside) and a channel (how stable).

Standard Baseline (ARM64 only) Compat (+ AWS CLI + boto3)
Release (latest) latest ✅ latest-baseline latest-compat
Release (pinned) x.y.z x.y.z-baseline x.y.z-compat
Nightly (floating) nightly — nightly-compat
Nightly (dated) nightly-mmddyyyy — nightly-mmddyyyy-compat

For the full breakdown see Docker Images.

Choosing a tag

# Standard release — recommended for most use cases
services:
  floci:
    image: floci/floci:latest
    ports:
      - "4566:4566"

Use the compat image if your workflow requires the AWS CLI or boto3 available inside the container:

services:
  floci:
    image: floci/floci:latest-compat
    ports:
      - "4566:4566"

Standard and compat have identical startup time (~24 ms) and memory footprint (~13 MiB). On Raspberry Pi 4-class ARM64 CPUs that lack LSE, use floci/floci:latest-baseline (or a pinned x.y.z-baseline release).

Build from Source

Prerequisites

  • Java 25+
  • Maven 3.9+
  • (Optional) GraalVM Mandrel for native compilation

Clone and run

git clone https://github.com/floci-io/floci.git
cd floci
mvn quarkus:dev          # dev mode with hot reload on port 4566

Build a production JAR

mvn clean package -DskipTests
java -jar target/quarkus-app/quarkus-run.jar

Build a native executable

The Makefile builds the binary inside the Quarkus builder container, so nothing but Docker is needed on the host, and packages it the way the release workflow does:

make native          # Linux binary for the host architecture, staged in native/<arch>/
make native-image    # packaged as floci:local-native with docker/Dockerfile.native-package
make native-up       # started with docker compose, waits for /_floci/health

To run Floci as a plain binary on your machine, install GraalVM or Mandrel with native-image (for example sdk install java 25.0.3-graal, or set GRAALVM_HOME) and build on the host:

make native-host     # target/floci-<version>-runner for this machine, no Docker
make run-native      # start it on port 4566, state under ./data
make native-install  # copy it to ~/.local/bin/floci (PREFIX=/usr/local to change)

On Mandrel 25.0.4 and later the build needs -H:-AOTSingleCallsiteInline: Quarkus 3.39 turns single-callsite inlining on and the generated REST invokers then outgrow the aarch64 branch range. make native-host adds the flag when the installed native-image is Mandrel; GraalVM does not know it and does not need it.

!!! note A native build takes about four minutes with the quick profile the Makefile uses (-Ob); a full optimisation build takes longer. make help lists every target.