On Thu, Nov 19, 2020 at 02:16:33PM +0800, Liu Yinsi wrote:
"docker pull" in build script, "docker run" in start script looks more reasonable.
Signed-off-by: Liu Yinsi liuyinsi@163.com
container/rabbitmq/build | 5 +++++ container/rabbitmq/start | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 container/rabbitmq/build
diff --git a/container/rabbitmq/build b/container/rabbitmq/build new file mode 100755 index 0000000..c0bc179 --- /dev/null +++ b/container/rabbitmq/build @@ -0,0 +1,5 @@ +#!/bin/bash +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+docker pull rabbitmq:3-management
how about touch a Dockerfile FROM rabbitmq:3-management
then touch build file docker build -t xxx .
/container/rabbitmq build Dockerfile start
Thanks, Shenwei
diff --git a/container/rabbitmq/start b/container/rabbitmq/start index 7e25417..6b875f3 100755 --- a/container/rabbitmq/start +++ b/container/rabbitmq/start @@ -5,7 +5,6 @@ . $CCI_SRC/container/defconfig.sh
docker_rm rabbitmq -docker pull rabbitmq:3-management
cmd=( docker run -- 2.23.0