summaryrefslogtreecommitdiffstats
path: root/docker/supervisor.sh
blob: b67de2212c4506f3bd4006f0389763175e07010f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# nginx service start when boot
supervisor_config='/etc/supervisor/conf.d/yardstick.conf'

if [[ ! -e "${supervisor_config}" ]];then
    cat << EOF > "${supervisor_config}"
[supervisord]
nodaemon = true

[program:nginx]
command = service nginx restart

[program:yardstick_uwsgi]
directory = /etc/yardstick
command = uwsgi -i yardstick.ini
EOF
fi
/span>: "yardstick:suite:0.1" name: "os-odl-nofeature-noha" test_cases_dir: "tests/opnfv/test_cases/" test_cases: - file_name: opnfv_yardstick_tc002.yaml - file_name: opnfv_yardstick_tc005.yaml - file_name: opnfv_yardstick_tc010.yaml - file_name: opnfv_yardstick_tc011.yaml constraint: installer: compass - file_name: opnfv_yardstick_tc012.yaml - file_name: opnfv_yardstick_tc014.yaml - file_name: opnfv_yardstick_tc037.yaml - file_name: opnfv_yardstick_tc055.yaml constraint: installer: compass pod: huawei-pod1 task_args: huawei-pod1: '{"file": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml", "host": "node5"}' - file_name: opnfv_yardstick_tc063.yaml constraint: installer: compass pod: huawei-pod1 task_args: huawei-pod1: '{"file": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml", "host": "node5"}' - file_name: opnfv_yardstick_tc069.yaml - file_name: opnfv_yardstick_tc070.yaml - file_name: opnfv_yardstick_tc071.yaml - file_name: opnfv_yardstick_tc072.yaml - file_name: opnfv_yardstick_tc087.yaml constraint: installer: fuel task_args: default: '{"file": "etc/yardstick/nodes/fuel_baremetal/pod.yaml", "attack_host": "node6"}' - file_name: opnfv_yardstick_tc093.yaml constraint: installer: apex task_args: default: '{"file": "etc/yardstick/nodes/apex_baremetal/pod.yaml", "attack_host_cmp_one": "node4","attack_host_cmp_two": "node5", "systemd_service_name": "openvswitch"}'