No description
  • TypeScript 100%
Find a file
keeb 42f738c7b1 feat: roll back @keeb/docker/compose update on failed health gate
Add opt-in rollbackOnUpdate + updateHealthTimeout global args to the compose
`update` method. When enabled: capture the running images before pulling,
health-gate the new deploy (every targeted service running, and healthy if it
defines a healthcheck), and on failure re-tag and redeploy the previous images.
Prune now runs only after a healthy deploy so it can't delete the rollback
target. Bump compose model + manifest to 2026.05.31.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 17:26:14 -07:00
.claude/skills/docker feat: add embedded docker skill for AI agents 2026-04-06 18:33:27 -07:00
.swamp/workflows Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:56:28 -07:00
extensions/models feat: roll back @keeb/docker/compose update on failed health gate 2026-05-31 17:26:14 -07:00
workflows/setup-docker Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:47 -08:00
.gitignore Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:47 -08:00
.swamp.yaml Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:47 -08:00
CLAUDE.md Add repository and tags to manifest 2026-03-02 22:01:48 -08:00
manifest.yaml feat: roll back @keeb/docker/compose update on failed health gate 2026-05-31 17:26:14 -07:00
README.md Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:56:28 -07:00

@keeb/docker

Swamp extension for Docker Engine and Docker Compose lifecycle management over SSH.

Models

docker/engine

Install Docker Engine and manage containers on a remote host.

Method Description
install Install Docker Engine on Alpine Linux
build Build a Docker image from a Dockerfile
run Run a container (stops existing container with same name first)
stop Stop and remove a container (idempotent)
inspect Inspect a container
exec Execute a command in a running container

docker/compose

Manage Docker Compose services on a remote host.

Method Description
start Start Compose services
stop Stop Compose services
update Pull images and restart services
status Check service status

Workflows

Workflow Description
setup-docker Install Docker Engine on a running VM

Dependencies

Install

swamp extension pull @keeb/docker

Usage

Install Docker on a fresh Alpine VM, then run a container:

# Install docker + enable the service
swamp model method run my-host install

# Run nginx exposed on 8080
swamp model method run my-host run \
  --args containerName=web,imageTag=nginx:alpine,ports='["8080:80"]',restart=unless-stopped

Or manage a compose stack on the same host:

# Pull latest images and restart services in ~/stack
swamp model method run my-stack update
swamp model method run my-stack status

License

MIT — see LICENSE.