Unverified Commit b9512ca6 authored by boklm's avatar boklm
Browse files

Display container's path when opening debug shell

parent 8a999d86
......@@ -256,7 +256,6 @@ in the build containers, but vi can be used instead.
When you press ctrl+d (twice if you opened a bash shell) the debug shell
is closed and the container containing the failed build is removed.
If you want to make a backup of the container's rootfs with the failed
build to look at it later, you should be able to find it in
The path to the container should be printed on the screen in case you
want to backup its rootfs to be able to look at it later.
......@@ -314,6 +314,9 @@ runc:
remote_exec: |
set -e
[% IF c("interactive") -%]
echo Container directory: [% shell_quote(c("var/container/dir")) %]
[% END -%]
mkdir -p '[% c("var/container/dir", { error_if_undef => 1 }) %]'/rootfs/rbm
echo '#!/bin/sh' > '[% c("var/container/dir") %]'/rootfs/rbm/cmd
echo [% shell_quote(c('exec_cmd')) %] >> '[% c("var/container/dir") %]'/rootfs/rbm/cmd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment