[why] for user locally deploy compass-ci, ssh-r is not exists, so check when ssh-r already exists, skip ssh-r.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/4-docker/buildall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/4-docker/buildall b/sparrow/4-docker/buildall index bb77a1f..f53bf4c 100755 --- a/sparrow/4-docker/buildall +++ b/sparrow/4-docker/buildall @@ -56,7 +56,7 @@ do_one_run() mkdir $tmpdir/start_$container_name 2>/dev/null && ( cd "$container" - [ "$container_name" == 'ssh-r' ] && exit + [ -n "$(docker ps -aqf name='ssh_r')" ] && exit [ -x first-run ] && ./first-run [ -x start ] && ./start [ "$container_name" == 'initrd-lkp' ] && ./run
@@ -56,7 +56,7 @@ do_one_run() mkdir $tmpdir/start_$container_name 2>/dev/null && ( cd "$container"
[ "$container_name" == 'ssh-r' ] && exit
[ -n "$(docker ps -aqf name='ssh_r')" ] && exit
avoid use a long command in a test part, you can use: container_id = $(docker ps -aqf name='ssh_r') [ -n "$container_id"] && exit
Thanks, Luan Shengde
[ -x first-run ] && ./first-run [ -x start ] && ./start [ "$container_name" == 'initrd-lkp' ] && ./run
-- 2.23.0
On Mon, Mar 01, 2021 at 04:31:16PM +0800, Luan Shengde wrote:
@@ -56,7 +56,7 @@ do_one_run() mkdir $tmpdir/start_$container_name 2>/dev/null && ( cd "$container"
[ "$container_name" == 'ssh-r' ] && exit
[ -n "$(docker ps -aqf name='ssh_r')" ] && exit
avoid use a long command in a test part, you can use: container_id = $(docker ps -aqf name='ssh_r') [ -n "$container_id"] && exit
good
Thanks, Yinsi
Thanks, Luan Shengde
[ -x first-run ] && ./first-run [ -x start ] && ./start [ "$container_name" == 'initrd-lkp' ] && ./run
-- 2.23.0