Skip to content

feat: swam stack generation#454

Merged
wax911 merged 4 commits into
devfrom
feat/swam-stack-generation
Apr 26, 2026
Merged

feat: swam stack generation#454
wax911 merged 4 commits into
devfrom
feat/swam-stack-generation

Conversation

@wax911

@wax911 wax911 commented Apr 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@wax911 wax911 force-pushed the feat/swam-stack-generation branch from e99a301 to f74782b Compare April 25, 2026 19:07
introduces a new system to automatically generate and validate Docker Swarm stack files from their source definitions.

The `tools/generate_stacks.py` script now consolidates per-service `docker-compose.yml` files and new `swarm.fragment.yml` files into aggregated `stacks/*.yml` artifacts. all `docker-compose.yml` files now include an `x-stack:` annotation to define their target stack.

to enforce consistency, a CI job checks for drift between source files and generated stacks. additionally, a nightly workflow automatically regenerates drifted stacks and opens pull requests. the `stackctl.sh` script gains `generate` and `sync` commands, and automatically regenerates stacks before deployment with `up`.

common Docker Compose keys incompatible with Swarm (e.g., `container_name`, `restart`, `build`) are removed, default logging is applied, and relative paths are rewritten for Swarm compatibility. also updates Docker image dependencies across various services.
@wax911 wax911 force-pushed the feat/swam-stack-generation branch from f74782b to 49bd0dc Compare April 25, 2026 19:15
@wax911 wax911 merged commit 9dc2836 into dev Apr 26, 2026
4 checks passed
@wax911 wax911 deleted the feat/swam-stack-generation branch April 26, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant