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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user