mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
[PR #732] [MERGED] Add RunStackService API implementing docker compose run
#768
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/732
Author: @bpbradley
Created: 8/15/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @mbecker20
Base:
1.19.1← Head:RunCommand📝 Commits (5)
a8f3f43Add RunStackService API implementingdocker compose run4891138Add working Procedure configuration48be4e9Removekm execute runalias. Remove redundant ``#[serde(default)]onOption`.b3f346eRefactor command fromStringtoVec<String>c77d74cImplement proper shell escaping📊 Changes
24 files changed (+712 additions, -8 deletions)
View changed files
📝
Cargo.toml(+1 -0)📝
bin/cli/src/command/execute.rs(+7 -0)📝
bin/core/src/api/execute/mod.rs(+1 -0)📝
bin/core/src/api/execute/stack.rs(+90 -0)📝
bin/core/src/helpers/procedure.rs(+17 -0)📝
bin/core/src/helpers/update.rs(+7 -0)📝
bin/core/src/resource/procedure.rs(+9 -0)📝
bin/core/src/sync/resources.rs(+7 -0)📝
bin/core/src/sync/toml.rs(+7 -0)📝
bin/periphery/Cargo.toml(+2 -1)📝
bin/periphery/src/api/compose.rs(+152 -2)📝
bin/periphery/src/api/mod.rs(+1 -0)📝
bin/periphery/src/compose/write.rs(+7 -1)📝
client/core/rs/src/api/execute/mod.rs(+1 -0)📝
client/core/rs/src/api/execute/stack.rs(+58 -1)📝
client/core/rs/src/entities/mod.rs(+1 -0)📝
client/core/ts/src/responses.ts(+2 -1)📝
client/core/ts/src/types.ts(+29 -0)📝
client/periphery/rs/src/api/compose.rs(+59 -0)📝
frontend/package.json(+2 -1)...and 4 more files
📄 Description
Adds backend support for
docker compose runtargeting a service defined within a komodo managed stack.Here is a resource TOML that can be used to create a stack, action, and procedure for testing / validation. Each test is intended to run the same command, which prints
hello, world!to stdout in a roundabout way (just to demonstrate usage of most of the features -- I also added a random TZ to demonstrate secrets interpolation was working).And km cli implementation
Sample:
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.