#!/bin/bash
# SPDX-License-Identifier: MulanPSL-2.0+
# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.

. $CCI_SRC/container/defconfig.sh

. ./docker_run.sh
docker_rm srv-http-result

cmd=(
	docker run
	--restart=always
	--name srv-http-result
	-e LISTEN_PORT=20007
	-p 20007:20007
	-v /srv/result:/srv/result:ro
	-v /etc/localtime:/etc/localtime:ro
	$(mount_ssl)
	-d
	srv-http
)

"${cmd[@]}"
