From deee1a4f682e1b0e62d9e8660ca605cf9ac61c52 Mon Sep 17 00:00:00 2001 From: Cao Xueliang Date: Sat, 23 Nov 2024 17:28:19 +0800 Subject: [PATCH] fix my-docker run error add my-docker.sh script and use multi-docker to run my docker Signed-off-by: Cao Xueliang --- providers/docker/run.sh | 1 + providers/my-docker.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 providers/my-docker.sh diff --git a/providers/docker/run.sh b/providers/docker/run.sh index 4618175a6..198982751 100755 --- a/providers/docker/run.sh +++ b/providers/docker/run.sh @@ -102,4 +102,5 @@ cmd=( /root/sbin/entrypoint.sh ) +echo "less $log_dir" "${cmd[@]}" 2>&1 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' | tee -a "$log_dir" diff --git a/providers/my-docker.sh b/providers/my-docker.sh new file mode 100755 index 000000000..f84f8ff11 --- /dev/null +++ b/providers/my-docker.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +source ${CCI_SRC}/lib/log.sh + +[[ $tbox_group ]] || tbox_group=dc-8g +export hostname=$tbox_group.$USER-$$ +# specify which queues will be request, use " " to separate more than 2 values +export queues="$tbox_group~$USER" + +$CCI_SRC/providers/multi-docker -n $hostname -c 1 -- Gitee