Compare commits

..

4 commits

Author SHA1 Message Date
dd7fa4020f Merge pull request 'feature/2025-03-18-add-support-for-podman' (#7) from feature/2025-03-18-add-support-for-podman into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2025-03-27 14:40:13 +00:00
62cdbdb089 docs: add missing information to README
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-02 21:21:50 +02:00
0d4db95186 Merge branch 'develop' of code.apps.glenux.net:glenux/docmachine-cli into develop
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-02 21:14:03 +02:00
87db3aaad1 Update .drone.yml 2024-06-02 07:06:36 +00:00
3 changed files with 6 additions and 3 deletions

View file

@ -182,8 +182,11 @@ module DocMachine::Build
Log.info { "Slides: no slides directory detected." }
end
docker_opts << @config.image_tag
docker_opts << @config.action
Log.info {
docker_str = [@config.container_runtime, "run"].concat(docker_opts).join(" ").colorize(:yellow)
docker_str = [@config.container_runtime].concat(docker_opts).join(" ").colorize(:yellow)
"#{@config.container_runtime.capitalize}: #{docker_str}"
}

View file

@ -57,7 +57,7 @@ module DocMachine::Container
Log.debug { "Docker run command: #{cmd.join(" ")}" }
# Start the Docker container process
process = Process.new(cmd.first, cmd.skip(1), input: STDIN, output: STDOUT, error: STDERR)
process = Process.new("docker", ["run"] + docker_opts + [image_tag, action], input: STDIN, output: STDOUT, error: STDERR)
Log.info { "Docker container #{docker_name} started." }

View file

@ -55,7 +55,7 @@ module DocMachine::Container
Log.debug { "Podman run command: #{cmd.join(" ")}" }
# Start the Podman container process
process = Process.new(cmd.first, cmd.skip(1), input: STDIN, output: STDOUT, error: STDERR)
process = Process.new("podman", ["run"] + docker_opts + [image_tag, action], input: STDIN, output: STDOUT, error: STDERR)
Log.info { "Podman container #{docker_name} started." }