Compare commits
4 commits
feature/20
...
develop
Author | SHA1 | Date | |
---|---|---|---|
dd7fa4020f | |||
62cdbdb089 | |||
0d4db95186 | |||
87db3aaad1 |
3 changed files with 6 additions and 3 deletions
|
@ -182,8 +182,11 @@ module DocMachine::Build
|
||||||
Log.info { "Slides: no slides directory detected." }
|
Log.info { "Slides: no slides directory detected." }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
docker_opts << @config.image_tag
|
||||||
|
docker_opts << @config.action
|
||||||
|
|
||||||
Log.info {
|
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}"
|
"#{@config.container_runtime.capitalize}: #{docker_str}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ module DocMachine::Container
|
||||||
Log.debug { "Docker run command: #{cmd.join(" ")}" }
|
Log.debug { "Docker run command: #{cmd.join(" ")}" }
|
||||||
|
|
||||||
# Start the Docker container process
|
# 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." }
|
Log.info { "Docker container #{docker_name} started." }
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ module DocMachine::Container
|
||||||
Log.debug { "Podman run command: #{cmd.join(" ")}" }
|
Log.debug { "Podman run command: #{cmd.join(" ")}" }
|
||||||
|
|
||||||
# Start the Podman container process
|
# 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." }
|
Log.info { "Podman container #{docker_name} started." }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue