Signed-off-by: cuiyili 2268260388@qq.com --- container/upload-libvirt/start | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 container/upload-libvirt/start
diff --git a/container/upload-libvirt/start b/container/upload-libvirt/start new file mode 100755 index 0000000..5d149ad --- /dev/null +++ b/container/upload-libvirt/start @@ -0,0 +1,22 @@ +#!/bin/bash +# Refer to: https://hub.docker.com/r/openresty/openresty +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# SPDX-License-Identifier: MulanPSL-2.0+ + +. $CCI_SRC/container/defconfig.sh + +: ${UPLOAD_LIBVIRT_PORT:=3081} +docker_rm upload-libvirt + +cmd=( + docker run -d + --name upload-libvirt + --restart=always + -p ${UPLOAD_LIBVIRT_PORT}:3081 + -v $PWD/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf + -v /etc/localtime:/etc/localtime:ro + -v /srv/cci/libvirt-xml:/srv/cci/libvirt-xml + upload-libvirt +) + +"${cmd[@]}"