feat: Add basic heropods container example

- Initialize `heropods` factory using Podman
- Create, start, and stop a custom `alpine` container
- Execute a command within the container
- Add debug log for container command execution
This commit is contained in:
Mahmoud-Emad
2025-09-08 14:29:26 +03:00
parent 196bcebb27
commit 41c8f7cf6d
2 changed files with 20 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ pub fn (mut self Container) exec(cmd_ osal.Command) !string {
// Use the builder node to execute inside container
mut node := self.node()!
console.print_debug('Executing command in container ${self.name}: ${cmd_.cmd}')
return node.exec(cmd: cmd_.cmd, stdout: cmd_.stdout)
}