Make fan-out example local runnable

This commit is contained in:
2026-05-31 04:03:26 +00:00
parent b3044c5b7b
commit eac73a79a1
4 changed files with 21 additions and 20 deletions

View File

@@ -74,6 +74,12 @@ Publish the local HTML example:
go run ./cmd/distributor run --config examples/local-html.yml go run ./cmd/distributor run --config examples/local-html.yml
``` ```
Preview local fan-out publication:
```sh
go run ./cmd/distributor run --config examples/fan-out.yml --dry-run
```
## Output ## Output
`run` prints the number of configured pipelines, one line per pipeline, one line per planned destination action, and a final status line. Actions include: `run` prints the number of configured pipelines, one line per pipeline, one line per planned destination action, and a final status line. Actions include:

View File

@@ -150,5 +150,4 @@ Maintained examples live under [examples](../examples/):
- `local-to-local.yml`: minimal local config. - `local-to-local.yml`: minimal local config.
- `local-publish.yml`: runnable local source publication. - `local-publish.yml`: runnable local source publication.
- `local-html.yml`: runnable local HTML publication. - `local-html.yml`: runnable local HTML publication.
- `fan-out.yml`: runnable local fan-out publication to source and HTML destinations.
`examples/fan-out.yml` currently demonstrates accepted SSH/S3 config shape but is not executable until remote backend support exists.

View File

@@ -26,6 +26,12 @@ Run the local HTML publication:
go run ./cmd/distributor run --config examples/local-html.yml go run ./cmd/distributor run --config examples/local-html.yml
``` ```
Preview local fan-out publication:
```sh
go run ./cmd/distributor run --config examples/fan-out.yml --dry-run
```
## Filesystem Layout ## Filesystem Layout
Source bundles are discovered beneath the configured local source root. Each bundle is a directory containing `manifest.json`. Source bundles are discovered beneath the configured local source root. Each bundle is a directory containing `manifest.json`.

View File

@@ -1,28 +1,18 @@
pipelines: pipelines:
- id: reports - id: example-fan-out
source: source:
backend: local backend: local
path: /var/spool/distributor/reports path: examples/source-bundle
validation:
on_digest_mismatch: fail
destinations: destinations:
- id: markdown-archive - id: local-source-archive
backend: s3 backend: local
endpoint: https://s3.example.com path: workspace/published/fan-out/source
bucket: reports
prefix: archive
region: us-east-1
force_path_style: true
credentials:
access_key_id_env: DISTRIBUTOR_S3_ACCESS_KEY_ID
secret_access_key_env: DISTRIBUTOR_S3_SECRET_ACCESS_KEY
publish: publish:
source: true source: true
html: false html: false
- id: static-site - id: local-html-site
backend: ssh backend: local
uri: ssh://deploy@example.com:22 path: workspace/published/fan-out/html
path: /srv/www/reports
publish: publish:
source: false source: false
html: true html: true