mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-25 06:47:41 -05:00
* docs(skill): publish the floci agent skill for the CLI and the four emulators skills/floci/ teaches an AI agent to run, wire up and troubleshoot the AWS, GCP, Azure and OCI emulators through floci-cli, docker run or Docker Compose. - SKILL.md with the lifecycle, the hard rules (fake credentials only, verify the endpoint, name the tree, parse -o json) and one reference per cloud. - references/docs.md sends the agent to the published documentation of each emulator instead of copying coverage lists that go stale. - references/docker.md and assets/compose/ give docker run equivalents of 'floci <tree> start' and a ready Compose template per cloud, plus one with all four on a network. - scripts/install-floci.sh and scripts/ensure-running.sh. - .claude-plugin/marketplace.json publishes it as a Claude Code plugin and the root plugin.json as a Kiro power (Agent Plugins format). - SkillDocsTest checks every floci command and flag the skill quotes against the real command tree, its links, its frontmatter and both manifests. - README: an "AI agents" section with the install commands, a Privacy section on what the CLI and the skill send over the network, and support links. - AGENTS.md: a command, flag, env output or exit code change updates the skill in the same change. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * docs(skill): bind published ports to loopback and make the helper fail safely Addresses the review of #69. - The Compose templates and the docker run examples publish the emulator on 127.0.0.1. The emulators accept fake credentials, so a plain 4566:4566 exposed local resources to the network. docker.md says when to drop it and that 'floci <tree> start' still publishes on every interface. - ensure-running.sh no longer replaces a stopped container: it exits 3 and leaves it alone unless FLOCI_REPLACE_STOPPED=1, because start removes the container and, without a profile, its settings. - The documented call is now 'exports="$(...)" && eval "$exports"'. The one-step eval succeeded when the helper failed, so later commands ran with missing or stale wiring. - The templates say that container name, namespace and network name are per project and change together. - docker.md lists the network settings to copy into the multi-cloud file when an app reaches child containers by name. - ci.md installs into a user-writable directory instead of assuming /usr/local/bin or sudo. - SkillDocsTest now reads commands inside assignments and across continued lines, with a test that a wrong flag is found in each form. The helper's own status and env calls were not being checked. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
# All four Floci emulators on one network. Delete the services you do not need.
|
|
# Each emulator keeps its own port, so nothing has to be remapped.
|
|
# See references/docker.md for the app-side wiring of each cloud.
|
|
#
|
|
# Ports are published on loopback only: the emulators accept fake credentials.
|
|
# 'myapp' is a placeholder: use one namespace per project, and rename the containers with it
|
|
# when two projects run on the same Docker host.
|
|
# Minimal form: no persistence, and child containers (RDS, Cloud SQL, Functions, ...) are not
|
|
# reachable by name from an app service. docker.md says which lines to copy for either.
|
|
|
|
services:
|
|
floci:
|
|
image: floci/floci:latest
|
|
container_name: floci
|
|
ports:
|
|
- "127.0.0.1:4566:4566"
|
|
environment:
|
|
FLOCI_HOSTNAME: floci
|
|
FLOCI_DOCKER_RESOURCE_NAMESPACE: myapp
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
floci-gcp:
|
|
image: floci/floci-gcp:latest
|
|
container_name: floci-gcp
|
|
ports:
|
|
- "127.0.0.1:4588:4588"
|
|
environment:
|
|
FLOCI_GCP_HOSTNAME: floci-gcp
|
|
FLOCI_GCP_BASE_URL: http://floci-gcp:4588
|
|
FLOCI_GCP_DOCKER_RESOURCE_NAMESPACE: myapp
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
floci-az:
|
|
image: floci/floci-az:latest
|
|
container_name: floci-az
|
|
ports:
|
|
- "127.0.0.1:4577:4577"
|
|
environment:
|
|
FLOCI_AZ_TLS_ENABLED: "true"
|
|
FLOCI_AZ_DOCKER_RESOURCE_NAMESPACE: myapp
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
floci-oci:
|
|
image: floci/floci-oci:latest
|
|
container_name: floci-oci
|
|
ports:
|
|
- "127.0.0.1:4599:4599"
|
|
environment:
|
|
FLOCI_OCI_HOSTNAME: floci-oci
|
|
FLOCI_OCI_DOCKER_RESOURCE_NAMESPACE: myapp
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|