update-moonmind

Update MoonMind deployments by fetching git branches, pulling commits, and restarting affected containers.

12|5|Updated Jan 14, 2025
One-click install
npx skills add https://github.com/MoonLadderStudios/MoonMind --skill update-moonmind
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-moonmind
Source: https://github.com/MoonLadderStudios/MoonMind/tree/main/.agents/skills/update-moonmind
Command: npx skills add https://github.com/MoonLadderStudios/MoonMind --skill update-moonmind

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, docker, docker-compose, jq, and includes scripts (resource) components.

What problem does it solve?

Enables operators to update a local MoonMind repository from git and apply changes to running services without unnecessary downtime or manual container restarts, ensuring deployments stay consistent with origin branches.

Core Features & Use Cases

  • Selective Service Restarts: Detects changed files and restarts only impacted compose services, minimizing disruption.
  • Image Drift & Reconciliation: Pulls compose images, detects image drift versus running containers, and reconciles services that require updates.
  • Robust Environment Handling: Validates branch names, supports dry-run and allow-dirty modes, auto-detects docker compose project mounts, and optionally includes the orchestrator in restarts.
  • Use Case: Use this Skill to safely apply a remote hotfix on the main branch, refresh images, and have MoonMind restart only the services affected by the changes.

Quick Start

Run the update script for your MoonMind repository and branch to fetch changes, refresh images if desired, and restart only the changed services.

Frequently Asked Questions about update-moonmind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Docker Compose services after pulling new Git commits without restarting everything?

To update Docker Compose services after pulling Git commits without full downtime, fetch the branch, pull commits, detect changed files, and restart only impacted containers. This selectively reconciles image drift and minimizes disruption to running services.

What is the best way to reconcile Docker image drift in a running Compose deployment?

The best way to reconcile Docker image drift is to refresh compose images, detect differences versus running containers, and selectively restart only the services requiring updates. This ensures deployments stay consistent with origin branches.

Can I apply a remote Git hotfix to my Docker deployment without causing unnecessary downtime?

Yes, you can apply a remote Git hotfix without unnecessary downtime by pulling the branch updates, refreshing images, and having the deployment restart only the services affected by the changes. This avoids manual container restarts.

Do I need Docker and Git installed to run automated deployment updates for Compose projects?

Yes, you need Git, Docker, Docker Compose, and jq installed to run automated deployment updates. These dependencies are required to fetch updates, pull images, and selectively restart affected services in local or containerized repositories.

How does dry-run mode work for Git and Docker Compose orchestration updates?

Dry-run mode for Git and Docker Compose orchestration updates validates branch names and checks for dirty worktrees without applying changes or restarting containers. It safely previews the update process before committing to the reconciliation.

What happens if a docker compose pull fails during a targeted service restart?

If a docker compose pull fails during a targeted service restart, the update process handles the compose pull failure gracefully and proceeds with reconciling services using the existing images. It avoids breaking the deployment workflow.