[PR #973] [MERGED] feat: Add Command Wrapper for Stack compose deployment #1800

Closed
opened 2026-03-22 17:44:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/moghtech/komodo/pull/973
Author: @ChanningHe
Created: 11/11/2025
Status: Merged
Merged: 11/11/2025
Merged by: @mbecker20

Base: 2.0.0Head: stack-compose-cmd-wrapper


📝 Commits (1)

  • fdf136b Add optional command wrapper for Docker Compose in StackConfig

📊 Changes

4 files changed (+54 additions, -7 deletions)

View changed files

📝 bin/periphery/src/api/compose/mod.rs (+6 -1)
📝 client/core/rs/src/entities/stack.rs (+12 -0)
📝 client/core/ts/src/types.ts (+16 -6)
📝 frontend/src/components/resources/stack/config.tsx (+20 -0)

📄 Description

Added optional compose_cmd_wrapper field to Stack configuration, allowing users to wrap the docker compose up -d command with external tools like secrets management CLIs.

Use Cases

  • 1password CLI: op run -- [[COMPOSE_COMMAND]]
  • sops: sops exec-env .encrypted.env '[[COMPOSE_COMMAND]]'
  • Custom tools: Any CLI tool that needs to inject secrets or environment variables

Changes

  • Backend: Added compose_cmd_wrapper: String field to StackConfig
  • Logic: Applies wrapper by replacing [[COMPOSE_COMMAND]] placeholder with the full compose command
  • Frontend: Added "Command Wrapper" Monaco editor in Stack config (positioned after Post Deploy)
  • Types: Regenerated TypeScript types

Example

compose_cmd_wrapper = """
sops exec-env ../.encrypted.env '[[COMPOSE_COMMAND]]'"""

Executes as:

sops exec-env .encrypted.env 'docker compose -p myproject -f compose.yaml up -d' ## Files Modified
image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/moghtech/komodo/pull/973 **Author:** [@ChanningHe](https://github.com/ChanningHe) **Created:** 11/11/2025 **Status:** ✅ Merged **Merged:** 11/11/2025 **Merged by:** [@mbecker20](https://github.com/mbecker20) **Base:** `2.0.0` ← **Head:** `stack-compose-cmd-wrapper` --- ### 📝 Commits (1) - [`fdf136b`](https://github.com/moghtech/komodo/commit/fdf136befdf67982c11ee1dacd90a926714335ad) Add optional command wrapper for Docker Compose in StackConfig ### 📊 Changes **4 files changed** (+54 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `bin/periphery/src/api/compose/mod.rs` (+6 -1) 📝 `client/core/rs/src/entities/stack.rs` (+12 -0) 📝 `client/core/ts/src/types.ts` (+16 -6) 📝 `frontend/src/components/resources/stack/config.tsx` (+20 -0) </details> ### 📄 Description Added optional `compose_cmd_wrapper` field to Stack configuration, allowing users to wrap the `docker compose up -d` command with external tools like secrets management CLIs. ## Use Cases - **1password CLI**: `op run -- [[COMPOSE_COMMAND]]` - **sops**: `sops exec-env .encrypted.env '[[COMPOSE_COMMAND]]'` - **Custom tools**: Any CLI tool that needs to inject secrets or environment variables ## Changes - **Backend**: Added `compose_cmd_wrapper: String` field to `StackConfig` - **Logic**: Applies wrapper by replacing `[[COMPOSE_COMMAND]]` placeholder with the full compose command - **Frontend**: Added "Command Wrapper" Monaco editor in Stack config (positioned after Post Deploy) - **Types**: Regenerated TypeScript types ## Example ```toml compose_cmd_wrapper = """ sops exec-env ../.encrypted.env '[[COMPOSE_COMMAND]]'""" ``` Executes as: ```bash sops exec-env .encrypted.env 'docker compose -p myproject -f compose.yaml up -d' ## Files Modified ``` <img width="1538" height="1026" alt="image" src="https://github.com/user-attachments/assets/9994434d-5665-4657-8f8c-f83e6d75006a" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-22 17:44:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1800