Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

docs: fix port ranges, OpenSearch default image and quick-start snippets (#2690)

Sam Fakhreddine279f2776b76b
diff --git a/README.md b/README.md
index 60f8d9644b..60d6222ce4 100644
--- a/README.md
+++ b/README.md
@@ -374,7 +374,7 @@ docker run -d --name floci \
| `FLOCI_SERVICES_RDS_DEFAULT_MYSQL_IMAGE` | `mysql:8.0` |
| `FLOCI_SERVICES_RDS_DEFAULT_MARIADB_IMAGE` | `mariadb:11` |
| `FLOCI_SERVICES_MSK_DEFAULT_IMAGE` | `redpandadata/redpanda:latest` |
-| `FLOCI_SERVICES_OPENSEARCH_DEFAULT_IMAGE` | `opensearchproject/opensearch:2` |
+| `FLOCI_SERVICES_OPENSEARCH_DEFAULT_IMAGE` | *(unset — images resolve per requested `EngineVersion`)* |
| `FLOCI_SERVICES_KINESIS_ANALYTICS_DEFAULT_IMAGE` | _(unset; chosen per RuntimeEnvironment)_ |
| `FLOCI_SERVICES_NEPTUNE_DEFAULT_IMAGE` | `tinkerpop/gremlin-server:3.7.3` |
| `FLOCI_SERVICES_NEPTUNE_DEFAULT_NEO4J_IMAGE` | `neo4j:5-community` |
diff --git a/docs/configuration/environment-variables.md b/docs/configuration/environment-variables.md
index d9bf0bbe05..22892a23b9 100644
--- a/docs/configuration/environment-variables.md
+++ b/docs/configuration/environment-variables.md
@@ -361,7 +361,7 @@ These services spawn Docker containers. They require access to the Docker socket
|---|---|---|
| `FLOCI_SERVICES_OPENSEARCH_ENABLED` | `true` | Enable the OpenSearch service |
| `FLOCI_SERVICES_OPENSEARCH_MOCK` | `false` | When `true`, domains are created instantly without a real container (API only) |
-| `FLOCI_SERVICES_OPENSEARCH_DEFAULT_IMAGE` | `opensearchproject/opensearch:2` | Docker image for OpenSearch domains |
+| `FLOCI_SERVICES_OPENSEARCH_DEFAULT_IMAGE` | *(unset)* | Optional fixed Docker image for every OpenSearch domain; when unset, images resolve per requested `EngineVersion` |
| `FLOCI_SERVICES_OPENSEARCH_PROXY_BASE_PORT` | `9400` | First port in the OpenSearch proxy range |
| `FLOCI_SERVICES_OPENSEARCH_PROXY_MAX_PORT` | `9499` | Last port in the OpenSearch proxy range |
| `FLOCI_SERVICES_OPENSEARCH_KEEP_RUNNING_ON_SHUTDOWN` | `false` | Keep OpenSearch containers running when Floci stops |
diff --git a/docs/configuration/ports.md b/docs/configuration/ports.md
index 3f94a0e2d3..5a07a8a61d 100644
--- a/docs/configuration/ports.md
+++ b/docs/configuration/ports.md
@@ -7,8 +7,11 @@
| `4566` | HTTP | All AWS API calls (every service) | Yes |
| `5100–5199` | HTTP | ECR Registry sidecar — bound directly by the `registry:2` container | **No** (see note) |
| `6379–6399` | TCP | ElastiCache Redis proxy (inside Floci) | Yes |
+| `6400–6419` | TCP | MemoryDB proxy (inside Floci) | Yes |
| `6500–6599` | HTTPS | EKS k3s API server — bound directly by each k3s container | **No** |
| `7001–7099` | TCP | RDS proxy (inside Floci) | Yes |
+| `8182–8282` | TCP | Neptune Gremlin proxy (inside Floci) | Yes |
+| `8700–8799` | HTTP | MWAA Airflow webserver proxy (inside Floci) | Yes |
| `9400–9499` | HTTP | OpenSearch data-plane — bound directly by each OpenSearch container | **No** |
| `12000–12499` | HTTP | Lambda Runtime API (internal, Docker-network only) | **No** |
@@ -16,9 +19,9 @@
There are two distinct patterns Floci uses to expose container ports:
-### Proxy-in-Floci (ElastiCache, RDS)
+### Proxy-in-Floci (ElastiCache, MemoryDB, RDS, Neptune, MWAA)
-Floci runs a **TCP proxy process inside its own container**. The proxy listens on the host port and forwards traffic to the backend container.
+Floci runs a **proxy process inside its own container**. The proxy listens on the host port and forwards traffic to the backend container.
```
host:6379 → [docker-compose ports mapping] → Floci container:6379 → Redis container:6379
@@ -147,7 +150,7 @@ host:5100 ←── floci-ecr-registry (registry:2 container, started by Floci
## Exposing Ports in Docker Compose
-Only the proxy-based services (ElastiCache and RDS) need port mappings in `docker-compose.yml`. Direct-binding services (ECR, EKS, OpenSearch) bind their ports on the host automatically via Docker:
+Only the proxy-based services (ElastiCache, MemoryDB, RDS, Neptune, MWAA) need port mappings in `docker-compose.yml`. Direct-binding services (ECR, EKS, OpenSearch) bind their ports on the host automatically via Docker:
```yaml
services:
@@ -156,7 +159,10 @@ services:
ports:
- "4566:4566" # All AWS API calls
- "6379-6399:6379-6399" # ElastiCache / Redis proxy (proxy in Floci)
+ - "6400-6419:6400-6419" # MemoryDB proxy (proxy in Floci)
- "7001-7099:7001-7099" # RDS proxy (proxy in Floci)
+ - "8182-8282:8182-8282" # Neptune Gremlin proxy (proxy in Floci)
+ - "8700-8799:8700-8799" # MWAA webserver proxy (proxy in Floci)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
```
diff --git a/docs/getting-started/quick-start.md b/docs/getting-started/quick-start.md
index aabdff1c37..a487f12809 100644
--- a/docs/getting-started/quick-start.md
+++ b/docs/getting-started/quick-start.md
@@ -165,21 +165,21 @@ Floci emulates ECR with a real OCI registry behind it, so the stock `docker` cli
```bash
# Create the repository (lazy-starts the backing registry container)
-aws ecr create-repository --repository-name floci-it/app --endpoint-url $AWS_ENDPOINT
+aws ecr create-repository --repository-name floci-it/app --endpoint-url $AWS_ENDPOINT_URL
# Authenticate
-aws ecr get-login-password --endpoint-url $AWS_ENDPOINT \
+aws ecr get-login-password --endpoint-url $AWS_ENDPOINT_URL \
| docker login --username AWS --password-stdin \
- 000000000000.dkr.ecr.us-east-1.localhost:5000
+ 000000000000.dkr.ecr.us-east-1.localhost:5100
# Push
docker pull alpine:3.19
-docker tag alpine:3.19 000000000000.dkr.ecr.us-east-1.localhost:5000/floci-it/app:v1
-docker push 000000000000.dkr.ecr.us-east-1.localhost:5000/floci-it/app:v1
+docker tag alpine:3.19 000000000000.dkr.ecr.us-east-1.localhost:5100/floci-it/app:v1
+docker push 000000000000.dkr.ecr.us-east-1.localhost:5100/floci-it/app:v1
# Pull from a clean local image store
-docker rmi 000000000000.dkr.ecr.us-east-1.localhost:5000/floci-it/app:v1
-docker pull 000000000000.dkr.ecr.us-east-1.localhost:5000/floci-it/app:v1
+docker rmi 000000000000.dkr.ecr.us-east-1.localhost:5100/floci-it/app:v1
+docker pull 000000000000.dkr.ecr.us-east-1.localhost:5100/floci-it/app:v1
```
See the [ECR service docs](../services/ecr.md) for the full action surface, image-backed Lambda integration, and CDK `DockerImageFunction` support.
@@ -198,7 +198,7 @@ If you want to scope it tighter to just the Lambda Runtime API and the ECR regis
```bash
sudo ufw allow in on docker0 to any port 12000:12499 proto tcp comment 'floci lambda runtime api'
-sudo ufw allow in on docker0 to any port 5000:5099 proto tcp comment 'floci ecr registry'
+sudo ufw allow in on docker0 to any port 5100:5199 proto tcp comment 'floci ecr registry'
```
**Docker Desktop** (macOS / Windows / Linux) does not need this — it routes container → host through the Docker VM, which Floci's `DockerHostResolver` detects automatically.
diff --git a/mkdocs.yml b/mkdocs.yml
index f2c25126ab..e526975639 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -153,7 +153,6 @@ nav:
- AppSync: services/appsync.md
- Transfer Family: services/transfer.md
- AWS Config: services/config.md
- - CloudTrail: services/cloudtrail.md
- EMR: services/emr.md
- EMR Serverless: services/emr-serverless.md
- WAF v2: services/wafv2.md