Files
floci/docs/configuration/docker-images.md
T
Hector Ventura 023880b7d9 feat(parity): LocalStack drop-in compatibility (#696)
- Translate LocalStack env vars (LOCALSTACK_HOST, PERSISTENCE, LAMBDA_DOCKER_NETWORK, etc.)
  to Floci equivalents automatically at startup; opt out with LOCALSTACK_PARITY=false
- Serve /_localstack/init and /_localstack/health alongside /_floci/* equivalents
- Report executed scripts with path, state, and return_code in /_floci/init response
- Add /_aws/sqs/messages GET (non-destructive peek) and DELETE (purge) inspection endpoint
- Add /_aws/execute-api/{apiId}/{stageName} LocalStack-compat path for REST API invocation
- Add four-phase init hook lifecycle (boot/start/ready/stop) with dual-path discovery
  (/etc/floci/init/ and /etc/localstack/init/ compat paths)
- Install Python 3, AWS CLI, boto3 in standard image; wrap aws binary to pre-configure
  --endpoint-url=http://localhost:4566 so init scripts need no extra flags
- Wire entrypoint.sh + gosu privilege drop into all Dockerfile variants
- Add migration guide and update README, docker-compose, docker-images, SQS, and
  initialization-hooks docs
2026-05-04 01:15:59 -05:00

3.4 KiB

Docker Images

Floci publishes images to Docker Hub (floci/floci).

Every image tag combines two independent choices: what's inside (variant) and how stable it is (channel).

Axis 1 — Variant (what's inside)

Variant Contents When to use
Standard Floci native binary only General use — CI, local dev, Testcontainers (recommended)
Compat Floci + Python 3 + AWS CLI + boto3 Workflows that need AWS tooling available inside the container

The compat image is built on top of the standard image — startup time and memory footprint are identical. Only the image size increases.

Axis 2 — Channel (how stable)

Channel Source Published
Release Tagged version (e.g. 1.5.11) On every release
Nightly Tip of main Every night at 22:00 CT

Release images are stable and recommended for most use cases. Nightly images track active development and may include unreleased changes.

Full Tag Matrix

Combining both axes gives the complete set of published tags:

Standard Compat
Release (latest) latest ✅ latest-compat
Release (pinned) x.y.z x.y.z-compat
Nightly (floating) nightly nightly-compat
Nightly (dated) nightly-mmddyyyy nightly-mmddyyyy-compat

Dated nightly tags (e.g. nightly-05022026) are fixed and never move — use them for reproducible builds from main.

!!! warning Nightly images may include unreleased or experimental changes. Use release tags in production-like environments.

Quick Reference

# Standard release — recommended
image: floci/floci:latest

# Compat release — includes AWS CLI and boto3
image: floci/floci:latest-compat

# Pinned release — reproducible builds
image: floci/floci:1.5.11

# Nightly — track main
image: floci/floci:nightly

Multi-Architecture

All images are published as multi-arch manifests supporting linux/amd64 and linux/arm64. Docker selects the correct variant automatically.

What's in the Compat Image

The compat image installs the following on top of the standard image:

The AWS CLI is pre-configured to talk to the local Floci endpoint — no --endpoint-url flag is needed in hook scripts:

#!/bin/sh
aws sqs create-queue --queue-name my-queue   # works without --endpoint-url
aws s3 mb s3://my-bucket

The following environment variables are set in both the standard and compat images:

Variable Value
AWS_DEFAULT_REGION us-east-1
AWS_ACCESS_KEY_ID test
AWS_SECRET_ACCESS_KEY test
AWS_CONFIG_FILE /etc/floci/aws/config (sets endpoint_url = http://localhost:4566)

Override any of them at runtime via docker run -e or the Compose environment block.

Local Development

The project ships a docker-compose.yml at the repository root configured for local development. By default it uses docker/Dockerfile (a fast JVM build suited for iteration). Switch the dockerfile entry to test the native image locally:

build:
  context: .
  dockerfile: docker/Dockerfile.native   # or docker/Dockerfile for fast JVM dev build