blob: 9abc08185a065f201934e548115571d04dacae37 [file] [log] [blame]
kaihlavid1a1fb72019-06-13 16:11:48 +03001#!/bin/bash
2#
3# Copyright 2019 © Samsung Electronics Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
kaihlavi3c5cac12019-06-28 09:12:07 +030018echo "This is ${WORKSPACE}/scripts/sdc-dcae-d/setup_sdc_dcaed.sh"
kaihlavid1a1fb72019-06-13 16:11:48 +030019
Petr Ospalýb86853b2019-09-23 17:01:09 +020020# I am leaving this here for explicity - but the same is already set inside setup sdc...
21export ENV_NAME='CSIT'
kaihlavid1a1fb72019-06-13 16:11:48 +030022
Petr Ospalýb86853b2019-09-23 17:01:09 +020023# run sdc deployment
24set -- # to wipe out arguments...
25source ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh
26export ROBOT_VARIABLES
27
28# fail quick if error
29set -exo pipefail
30
31# prepare dcae-d
32mkdir -p "${WORKSPACE}/data/clone/"
33cd "${WORKSPACE}/data/clone"
34git clone --depth 1 "https://gerrit.onap.org/r/sdc/dcae-d/dt-be-main"
kaihlavid1a1fb72019-06-13 16:11:48 +030035
36# set enviroment variables
kaihlavid1a1fb72019-06-13 16:11:48 +030037source ${WORKSPACE}/data/clone/dt-be-main/version.properties
38export DCAE_RELEASE=$major.$minor-STAGING-latest
kaihlavid1a1fb72019-06-13 16:11:48 +030039
kaihlavi3c5cac12019-06-28 09:12:07 +030040cp ${WORKSPACE}/data/clone/dt-be-main/docker/scripts/docker_run.sh ${WORKSPACE}/scripts/sdc-dcae-d/dcaed_docker_run.sh
kaihlavid1a1fb72019-06-13 16:11:48 +030041
kaihlavi3c5cac12019-06-28 09:12:07 +030042${WORKSPACE}/scripts/sdc-dcae-d/dcaed_docker_run.sh -r ${DCAE_RELEASE} -e ${ENV_NAME} -p 10001
kaihlavid1a1fb72019-06-13 16:11:48 +030043
Petr Ospalýb86853b2019-09-23 17:01:09 +020044# This file is sourced in another script which is out of our control...
45set +e
46set +o pipefail
kaihlavid1a1fb72019-06-13 16:11:48 +030047