[PATCH compass-ci] provide my-docker script for user

Different users can run it concurrently while avoiding hostname collision. Signed-off-by: Xiao Shenwei <xiaoshenwei96@163.com> --- providers/my-docker | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 providers/my-docker diff --git a/providers/my-docker b/providers/my-docker new file mode 100755 index 0000000..c8420c7 --- /dev/null +++ b/providers/my-docker @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true + +require_relative './docker/docker' + +tbox_group = 'dc-1g' +hostname = "#{tbox_group}.#{ENV['USER']}-#{Process.pid}" +# specify which queues will be request, use "," to separate more than 2 values +queues = "#{tbox_group}~#{ENV['USER']}" + +main(hostname, queues) -- 2.23.0

Reviewed-by: Liu Yinsi <liuyinsi@163.com>
+++ b/providers/my-docker @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true + +require_relative './docker/docker' + +tbox_group = 'dc-1g' +hostname = "#{tbox_group}.#{ENV['USER']}-#{Process.pid}" +# specify which queues will be request, use "," to separate more than 2 values +queues = "#{tbox_group}~#{ENV['USER']}" + +main(hostname, queues) -- 2.23.0

On Mon, Nov 16, 2020 at 10:01:00AM +0800, Liu Yinsi wrote:
Reviewed-by: Liu Yinsi <liuyinsi@163.com>
It will send a email to Xiao Shenwei to remind him reply the point. Thanks, Xueliang
+++ b/providers/my-docker @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true + +require_relative './docker/docker' + +tbox_group = 'dc-1g' +hostname = "#{tbox_group}.#{ENV['USER']}-#{Process.pid}" +# specify which queues will be request, use "," to separate more than 2 values +queues = "#{tbox_group}~#{ENV['USER']}" + +main(hostname, queues) -- 2.23.0

On Mon, Nov 16, 2020 at 10:31:41AM +0800, Cao Xueliang wrote:
On Mon, Nov 16, 2020 at 10:01:00AM +0800, Liu Yinsi wrote:
Reviewed-by: Liu Yinsi <liuyinsi@163.com>
It will send a email to Xiao Shenwei to remind him reply the point.
Replies starting with Reviedwed have been filtered out of the script. But the remind message is only personally visible, so I'm not sure about it. If it send a email to you, please tell me, i will fix it. Thanks, Chenglong
Thanks, Xueliang
+++ b/providers/my-docker @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true + +require_relative './docker/docker' + +tbox_group = 'dc-1g' +hostname = "#{tbox_group}.#{ENV['USER']}-#{Process.pid}" +# specify which queues will be request, use "," to separate more than 2 values +queues = "#{tbox_group}~#{ENV['USER']}" + +main(hostname, queues) -- 2.23.0

On Mon, Nov 16, 2020 at 01:52:59PM +0800, Wang Chenglong wrote:
On Mon, Nov 16, 2020 at 10:31:41AM +0800, Cao Xueliang wrote:
On Mon, Nov 16, 2020 at 10:01:00AM +0800, Liu Yinsi wrote:
Reviewed-by: Liu Yinsi <liuyinsi@163.com>
It will send a email to Xiao Shenwei to remind him reply the point.
Replies starting with Reviedwed have been filtered out of the script. But the remind message is only personally visible, so I'm not sure about it.
If it send a email to you, please tell me, i will fix it.
Ok. Thanks, Xueliang
Thanks, Chenglong
Thanks, Xueliang
+++ b/providers/my-docker @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true + +require_relative './docker/docker' + +tbox_group = 'dc-1g' +hostname = "#{tbox_group}.#{ENV['USER']}-#{Process.pid}" +# specify which queues will be request, use "," to separate more than 2 values +queues = "#{tbox_group}~#{ENV['USER']}" + +main(hostname, queues) -- 2.23.0
participants (4)
-
Cao Xueliang
-
Liu Yinsi
-
Wang Chenglong
-
Xiao Shenwei