Files
floci/docker/compose.native.yml
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

20 lines
936 B
YAML

# Overlay for running the locally packaged native image (make native-image) instead of the
# JVM build docker-compose.yml describes:
#
# docker compose -f docker-compose.yml -f docker/compose.native.yml up -d
#
# or `make native-up`. The environment block adds what .github/workflows/compatibility.yml
# passes to the native container beyond docker-compose.yml's own settings, so a local run
# exercises CI's configuration: the SSO device page accepts only the configured principal
# (the Java portal test signs in as this id), and the RDS and Redshift endpoint hosts are
# what the JDBC suites dial.
services:
floci:
image: floci:local-native
environment:
FLOCI_SERVICES_IOT_MQTT_ENABLED: "true"
FLOCI_SERVICES_EC2_MOCK: "true"
FLOCI_SERVICES_REDSHIFT_ENDPOINT_HOST: floci
FLOCI_SERVICES_RDS_ENDPOINT_HOST: floci
FLOCI_SERVICES_SSOOIDC_LOCAL_PRINCIPAL_ID: 11111111-2222-3333-4444-555555555555