mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
isDaemonReachable() probed the daemon with 'docker info --format
{{.ServerVersion}}', a Docker-only template field. Under the podman-docker shim
'podman info' has no .ServerVersion, so the template errors and exits non-zero —
a false 'Docker daemon not reachable' even while containers run fine via the
DOCKER_HOST socket. Probe by exit code instead (docker/podman info exit 0 when
reachable) and discard output to avoid a pipe-buffer deadlock on waitFor().
9.0 KiB
9.0 KiB
Changelog
All notable changes to floci-cli will be documented in this file.
The format follows Keep a Changelog. This project uses Semantic Versioning.
Unreleased
Fixed
floci doctor'sdocker.daemoncheck reported "Docker daemon not reachable" under Podman even when the daemon was clearly up (container running, endpoint reachable). The probe useddocker info --format '{{.ServerVersion}}', a Docker-only template field that errors underpodman info. It now checks daemon reachability by exit code alone (docker info/podman infoexit 0 when reachable), with output discarded to avoid a pipe-buffer deadlock
0.1.5 — 2026-06-10
Added
floci start(andfloci az/floci gcp start) now honor the standardDOCKER_HOSTenvironment variable, so Podman, rootless setups, and remote Docker contexts work without assuming/var/run/docker.sock.DOCKER_HOSTis resolved into a unix socket, remote TCP daemon, or Windows named pipe — unix sockets are bind-mounted, remote TCP daemons are passed through to the container viaDOCKER_HOST. Precedence isDOCKER_HOST→DOCKER_SOCK(legacy override) → OS default.floci doctor'sdocker.socketcheck reports the resolved endpoint (#3)- Release ships a
darwin/amd64(Intel macOS) native binary again — built with an x86_64 GraalVM under Rosetta 2 on the Apple Silicon runner, avoiding the unreliable/queue-boundmacos-13Intel runner that previously caused the target to be dropped (a past release sat 9.5h onmacos-13before being cancelled). The Homebrew formula bump again wires thedarwin/amd64SHA, sobrew installand the install script resolve a real Intel binary instead of 404ing (#2)
Fixed
install.shno longer reports a misleading "Checksum mismatch" when a download transiently fails. A failedsha256sums.txtfetch inside a command-substitution pipeline was masked byset -e, leaving the expected checksum empty and falsely flagging a mismatch against a correctly-downloaded binary. The installer now retries every download with backoff — an explicit loop (4 attempts by default, tunable viaFLOCI_DOWNLOAD_RETRIES) that treats both transient HTTP errors and 0-byte responses as retryable, on top ofcurl --retry— fetches checksums to a file so download failures are caught, and emits distinct errors for "couldn't fetch checksum" vs. an actual mismatch. AddsFLOCI_SKIP_CHECKSUM=1to bypass verification (floci-io/floci#1236)
0.1.4 — 2026-06-02
Fixed
floci gcp wait/status/version/services/doctortimed out or reported the server unreachable even when the floci-gcp container was healthy — the CLI probed the AWS/Azure control path/_floci/health, which the GCP server routes into its GCS service (object not found bucket=_floci name=health). The GCP control plane lives under/_floci-gcp;FlociHttpClientnow takes a configurable control-plane prefix and thefloci gcpcommands use/_floci-gcp
0.1.3 — 2026-06-02
Added
floci gcpsubcommand group — full GCP emulator lifecycle viafloci gcp start|stop|restart|status|logs|wait|version|services|doctor|env|config|snapshot|completionfloci gcp start— launchesfloci/floci-gcp:lateston port 4588, mounts persist dir to/app/datafloci gcp env— prints GCP SDK emulator host variables (STORAGE_EMULATOR_HOST,PUBSUB_EMULATOR_HOST,FIRESTORE_EMULATOR_HOST,DATASTORE_EMULATOR_HOST,SECRET_MANAGER_EMULATOR_HOST);--serviceflag filters to a specific service (gcs, pubsub, firestore, datastore, secretmanager); supports bash, fish, and powershell shell formatsfloci gcp doctor— GCP-specific diagnostics: Docker checks against thefloci/floci-gcpimage plus GCP environment checksfloci gcp config show|profile|validate— manage GCP profile configurationfloci config default-product gcp—gcpis now a valid default product alongsideawsandaz; barefloci startroutes to the configured defaultfloci gcp snapshotstubs — commands registered but report "not yet available" pending server-side implementation in floci-gcp
0.1.2 — 2026-05-15
Fixed
floci version/floci --versionnow reads the version from a Maven-filteredversion.propertiesresource instead of a hardcoded string — bumpingpom.xmlis now the single source of truth- Homebrew bump workflow: secret renamed from
HOMEBREW_BUMP_TOKENtoGH_TOKEN; removed staledarwin/amd64SHA extraction that referenced the dropped build target
0.1.1 — 2026-05-15
Added
floci azsubcommand group — full Azure emulator lifecycle viafloci az start|stop|restart|status|logs|wait|version|services|doctor|env|snapshot|completionfloci awssubcommand group — explicit alias for all AWS commands (mirrors barefloci *)floci az start— launchesfloci/floci-az:lateston port 4577, mounts persist dir to/app/datafloci az env— printsAZURE_STORAGE_CONNECTION_STRING(default) or individual SDK endpoint vars (--format sdk-vars);--serviceflag filters to specific services (blob, queue, table, functions, app-config, key-vault)floci az doctor— Azure-specific diagnostics: all Docker checks againstfloci/floci-azimage, plusaz.cli.installedandaz.cli.connection-stringchecksfloci config default-product aws|az— persists the default product to~/.floci/config.yaml; barefloci startroutes to the configured defaultfloci az snapshotstubs — commands registered but report "not yet available" pending server-side implementation in floci-az
Changed
floci startnow routes to the configured default product (AWS unless overridden withfloci config default-product az)floci envandfloci az envnow auto-detect the port from the running container's port mapping instead of using the option default- CI native build reduced to linux/arm64 only — removed linux/amd64 native job from CI (covered by JVM test job); release still ships all platform binaries
- Release drops darwin/amd64 —
macos-13Intel runners took 34+ minutes for native-image builds; darwin/arm64 (Apple Silicon) ships instead
Fixed
floci envreported wrong port when container ran on a non-default port — now callsresolvedEndpoint()before extracting portfloci az doctorincorrectly checked forfloci/flociimage — now checksfloci/floci-az
0.1.0 — 2026-05-14
Added
floci start— launches the Floci container with configurable port, persist directory, services, and image pull policyfloci stop— stops and optionally removes the containerfloci restart— stop + start in sequencefloci status— shows container state, endpoint reachability, and server versionfloci logs— streams container logs with--follow,--tail,--sinceoptionsfloci wait— polls/_floci/healthuntil ready, with configurable timeoutfloci version— prints CLI version, server version, and image digestfloci services— lists enabled services from the running instancefloci doctor— runs 13 environment checks: Docker installation, daemon, socket, version, port availability, image presence and version, container state, endpoint reachability, AWS CLI endpoint configuration, S3 path-style config, Rust SDK XML warning, Go SDK endpoint warningfloci config show— displays the active configuration and profilefloci config validate— validates a docker-compose.yml for Floci compatibilityfloci config profile list|show|create|delete— manages profiles in~/.floci/profiles/floci snapshot save|load|list|delete— thin wrapper over/_floci/snapshots/*(stubs pending server implementation)floci snapshot export|import— stubs pending server implementationfloci completion bash|zsh— generates shell completion scripts- Global flags:
--endpoint,--container,--profile,--output text|json|yaml,--quiet,--verbose,--no-color - GraalVM native binary for linux/amd64, linux/arm64, darwin/arm64, windows/amd64
- Homebrew formula template and automated bump workflow
- Scoop bucket template
curl | shinstaller for Linux and macOS- PowerShell installer for Windows
Known Limitations
floci snapshot exportandfloci snapshot importare stubs — server-side endpoints not yet implementedfloci logs --servicefilter is not yet supported (requires server-side log routing)- Shell completion for
fishandpowershellis not yet generated by Picocli