blob: 184c4f00a83540a967ed49c78fa1e288008d950c [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001#!/bin/bash
2
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +03003#
4# Constants:
5#
6
7WORKSPACE="${WORKSPACE:-}"
8SUCCESS=0
9FAILURE=1
10
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020011CS_PASSWORD="onap123#@!"
12SDC_USER="asdc_user"
13SDC_PASSWORD="Aa1234%^!"
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030014
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020015JETTY_BASE="/var/lib/jetty"
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030016
17RELEASE=latest
18LOCAL=false
19RUNTESTS=false
Tal Gitelmanef4b94e2018-08-02 17:11:25 +030020BE_DEBUG_PORT="--publish 4000:4000"
21FE_DEBUG_PORT="--publish 6000:6000"
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030022ONBOARD_DEBUG_PORT="--publish 4001:4000"
23
24
25# Java Options:
Gitelman, Tal (tg851x)328388b2018-03-22 13:03:44 +020026BE_JAVA_OPTIONS="-Xdebug -agentlib:jdwp=transport=dt_socket,address=4000,server=y,suspend=n -Xmx1536m -Xms1536m"
27FE_JAVA_OPTIONS="-Xdebug -agentlib:jdwp=transport=dt_socket,address=6000,server=y,suspend=n -Xmx256m -Xms256m"
Avi Zivc175a0d2018-03-15 13:21:44 +020028ONBOARD_BE_JAVA_OPTIONS="-Xdebug -agentlib:jdwp=transport=dt_socket,address=4001,server=y,suspend=n -Xmx1g -Xms1g"
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030029DCAE_BE_JAVA_OPTIONS="-XX:MaxPermSize=256m -Xmx1024m -Dconfig.home=config -Dlog.home=/var/lib/jetty/logs/ -Dlogging.config=config/dcae-be/logback-spring.xml"
30DCAE_FE_JAVA_OPTIONS="-XX:MaxPermSize=256m -Xmx1024m -Dconfig.home=config -Dlog.home=/var/lib/jetty/logs/ -Dlogging.config=config/dcae-fe/logback-spring.xml"
Yuli Shlosbergaf70a202018-09-25 17:16:48 +030031SIM_JAVA_OPTIONS=" -Xmx128m -Xms128m -Xss1m -Dlog4j.configuration=file:///${JETTY_BASE}/config/sdc-simulator/log4j.properties"
Yuli Shlosbergf59a2252018-03-21 11:14:08 +020032API_TESTS_JAVA_OPTIONS="-Xmx512m -Xms512m"
33UI_TESTS_JAVA_OPTIONS="-Xmx1024m -Xms1024m"
dekstroza83520062018-05-03 16:47:08 +010034#Define this as variable, so it can be excluded in run commands on Docker for OSX, as /etc/localtime cant be mounted there.
35LOCAL_TIME_MOUNT_CMD="--volume /etc/localtime:/etc/localtime:ro"
36# If os is OSX, unset this, so /etc/localtime is not mounted, otherwise leave it be
37if [[ "$OSTYPE" == "darwin"* ]]; then
38 LOCAL_TIME_MOUNT_CMD=""
39fi
40
41
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030042#
43# Functions:
44#
45
Michael Lando451a3402017-02-19 10:28:42 +020046
Grinberg Motic3bda482017-02-23 11:24:34 +020047function usage {
Idan Amit8e0e0ea2018-09-13 17:13:55 +030048 echo "usage: docker_run.sh [ -r|--release <RELEASE-NAME> ] [ -e|--environment <ENV-NAME> ] [ -p|--port <Docker-hub-port>] [ -l|--local <Run-without-pull>] [ -sim|--simulator <Run-with-simulator>] [ -ta <run api tests with the supplied test suit>] [ -tu <run ui tests with the supplied test suit>] [ -ta <run api tests with the supplied test suit>] [ -tu <run ui tests with the supplied test suit>] [ -tad <run api tests with the default test suit>] [ -tu <run ui tests with the default test suit>] [ -dcae|--dcae <Run-with-DCAE>][ -h|--help ]"
Michael Landodc856bb2018-08-13 13:27:52 +030049 echo "start dockers built locally example: docker_run.sh -l"
50 echo "start dockers built locally and simulator example: docker_run.sh -l -sim"
51 echo "start dockers, pull from onap nexus according to release and simulator example: docker_run.sh -r 1.3-STAGING-latest -sim"
52 echo "start dockers built locally and run api tests docker example: docker_run.sh -l -tad"
53 echo "start dockers built locally and run only the catalog be example: docker_run.sh -l -d sdc-BE "
Michael Lando451a3402017-02-19 10:28:42 +020054}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030055#
Michael Lando451a3402017-02-19 10:28:42 +020056
57
Grinberg Motic3bda482017-02-23 11:24:34 +020058function cleanup {
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030059 echo "Performing old dockers cleanup"
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020060
61 if [ "$1" == "all" ] ; then
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030062 docker_ids=`docker ps -a | egrep -v "onap/sdc-simulator" | egrep "ecomp-nexus:${PORT}/sdc|sdc|Exit}|dcae" | awk '{print $1}'`
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020063 for X in ${docker_ids}
64 do
65 docker rm -f ${X}
66 done
67 else
68 echo "performing $1 docker cleanup"
69 tmp=`docker ps -a -q --filter="name=$1"`
Yuli Shlosberg474996a2018-02-27 18:55:25 +020070 if [[ ! -z "$tmp" ]]; then
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030071 docker rm -f ${tmp}
72 fi
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020073 fi
Grinberg Motic3bda482017-02-23 11:24:34 +020074}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030075#
Grinberg Motic3bda482017-02-23 11:24:34 +020076
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030077
Grinberg Motic3bda482017-02-23 11:24:34 +020078function dir_perms {
Michael Lando4b9b9472018-06-02 19:14:05 +030079 mkdir -p ${WORKSPACE}/data/logs/BE/SDC/SDC-BE
80 mkdir -p ${WORKSPACE}/data/logs/FE/SDC/SDC-FE
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030081
82 mkdir -p ${WORKSPACE}/data/logs/DCAE-BE/DCAE
83 mkdir -p ${WORKSPACE}/data/logs/DCAE-FE/DCAE
84
Michael Lando4b9b9472018-06-02 19:14:05 +030085 mkdir -p ${WORKSPACE}/data/logs/sdc-api-tests/ExtentReport
86 mkdir -p ${WORKSPACE}/data/logs/ONBOARD/SDC/ONBOARD-BE
Yuli Shlosbergf59a2252018-03-21 11:14:08 +020087 mkdir -p ${WORKSPACE}/data/logs/sdc-api-tests/target
88 mkdir -p ${WORKSPACE}/data/logs/sdc-ui-tests/ExtentReport
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030089 mkdir -p ${WORKSPACE}/data/logs/sdc-ui-tests/target
90 mkdir -p ${WORKSPACE}/data/logs/docker_logs
91 mkdir -p ${WORKSPACE}/data/logs/WS
Michael Lando4b9b9472018-06-02 19:14:05 +030092 chmod -R 777 ${WORKSPACE}/data/logs
Grinberg Motic3bda482017-02-23 11:24:34 +020093}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030094#
95
Yuli Shlosberg36604c72018-02-25 16:03:45 +020096
Yuli Shlosbergb4deec12018-02-25 20:24:44 +020097function docker_logs {
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +030098 docker logs $1 > ${WORKSPACE}/data/logs/docker_logs/$1_docker.log
Yuli Shlosbergb4deec12018-02-25 20:24:44 +020099}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300100#
Yuli Shlosbergb4deec12018-02-25 20:24:44 +0200101
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300102
103#
104# Readiness Prob
105#
106
107function ready_probe {
Michael Lando4b9b9472018-06-02 19:14:05 +0300108 docker exec $1 /var/lib/ready-probe.sh > /dev/null 2>&1
109 rc=$?
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300110 if [[ ${rc} == 0 ]]; then
111 echo DOCKER $1 start finished in $2 seconds
112 return ${SUCCESS}
Michael Lando4b9b9472018-06-02 19:14:05 +0300113 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300114 return ${FAILURE}
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200115}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300116#
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200117
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200118
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300119function probe_docker {
120 MATCH=`docker logs --tail 30 $1 | grep "DOCKER STARTED"`
121 echo MATCH is -- ${MATCH}
Avi Zivc175a0d2018-03-15 13:21:44 +0200122
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300123 if [ -n "$MATCH" ] ; then
124 echo DOCKER start finished in $2 seconds
125 return ${SUCCESS}
Michael Lando4b9b9472018-06-02 19:14:05 +0300126 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300127 return ${FAILURE}
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200128}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300129#
130
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200131
132function probe_es {
Michael Lando4b9b9472018-06-02 19:14:05 +0300133 health_Check_http_code=$(curl --noproxy "*" -o /dev/null -w '%{http_code}' http://${IP}:9200/_cluster/health?wait_for_status=yellow&timeout=120s)
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300134 if [[ "$health_Check_http_code" -eq 200 ]] ; then
135 echo DOCKER start finished in $1 seconds
136 return ${SUCCESS}
137 fi
138 return ${FAILURE}
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200139}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300140#
141
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200142
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200143function probe_sim {
Michael Lando4b9b9472018-06-02 19:14:05 +0300144 if lsof -Pi :8285 -sTCP:LISTEN -t >/dev/null ; then
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300145 echo "Already running"
146 return ${SUCCESS}
Michael Lando4b9b9472018-06-02 19:14:05 +0300147 else
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300148 echo "Not running"
149 return ${FAILURE}
Michael Lando4b9b9472018-06-02 19:14:05 +0300150 fi
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200151}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300152#
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200153
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200154
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300155function probe_dcae_be {
156 health_check_http_code=$(curl -i -o /dev/null -w '%{http_code}' http://${IP}:8082/dcae/conf/composition)
157 if [[ "${health_check_http_code}" -eq 200 ]] ; then
158 echo DOCKER start finished in $1 seconds
159 return ${SUCCESS}
Michael Lando4b9b9472018-06-02 19:14:05 +0300160 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300161 return ${FAILURE}
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200162}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300163#
164
165function probe_dcae_fe {
166 health_check_http_code=$(curl -i -o /dev/null -w '%{http_code}' http://${IP}:8183/dcaed/healthCheck)
167 if [[ "${health_check_http_code}" -eq 200 ]] ; then
168 echo DOCKER start finished in $1 seconds
169 return ${SUCCESS}
170 fi
171 return ${FAILURE}
172}
173#
174
175
176# Not applicable for current release. Return Success in any case
177function probe_dcae_tools {
178 health_check_http_code=$(curl -i -o /dev/null -w '%{http_code}' http://${IP}:8082/dcae/getResourcesByMonitoringTemplateCategory)
179 if [[ "${health_check_http_code}" -eq 200 ]] ; then
180 echo DOCKER start finished in $1 seconds
181 return ${SUCCESS}
182 fi
183 return ${SUCCESS}
184}
185#
186
187
Yuli Shlosberg5571a862017-10-03 18:18:51 +0300188function monitor_docker {
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300189 DOCKER_NAME=$1
190 echo "Monitor ${DOCKER_NAME} Docker"
Idan Amitdb3d5542017-12-07 11:33:32 +0200191 sleep 5
192 TIME_OUT=900
193 INTERVAL=20
194 TIME=0
Avi Zivc175a0d2018-03-15 13:21:44 +0200195
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300196 while [ "$TIME" -lt "$TIME_OUT" ]; do
197
198 case ${DOCKER_NAME} in
199
200 sdc-cs)
201 ready_probe ${DOCKER_NAME} ${TIME} ;
202 status=$? ;
203 ;;
204 sdc-es)
205 probe_es ${TIME} ;
206 status=$? ;
207 ;;
208 sdc-BE)
209 ready_probe ${DOCKER_NAME} ${TIME} ;
210 status=$? ;
211 ;;
212 sdc-FE)
213 ready_probe ${DOCKER_NAME} ${TIME} ;
214 status=$? ;
215 ;;
216 sdc-onboard-BE)
217 ready_probe ${DOCKER_NAME} ${TIME} ;
218 status=$? ;
219 ;;
220 dcae-be)
221 probe_dcae_be ${TIME} ;
222 status=$? ;
223 ;;
224 dcae-fe)
225 probe_dcae_fe ${TIME} ;
226 status=$? ;
227 ;;
228 dcae-tools)
229 probe_dcae_tools ;
230 status=$? ;
231 ;;
232 *)
233 probe_docker ${DOCKER_NAME} ${TIME};
234 status=$? ;
235 ;;
236
237 esac
238
239 if [ ${status} == ${SUCCESS} ] ; then
240 break;
Idan Amitdb3d5542017-12-07 11:33:32 +0200241 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300242
243 echo "Sleep: ${INTERVAL} seconds before testing if ${DOCKER_NAME} DOCKER is up. Total wait time up now is: ${TIME} seconds. Timeout is: ${TIME_OUT} seconds"
244 sleep ${INTERVAL}
Idan Amitdb3d5542017-12-07 11:33:32 +0200245 TIME=$(($TIME+$INTERVAL))
246 done
Yuli Shlosberg5571a862017-10-03 18:18:51 +0300247
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300248 docker_logs ${DOCKER_NAME}
Yuli Shlosberg36604c72018-02-25 16:03:45 +0200249
Idan Amitdb3d5542017-12-07 11:33:32 +0200250 if [ "$TIME" -ge "$TIME_OUT" ]; then
251 echo -e "\e[1;31mTIME OUT: DOCKER was NOT fully started in $TIME_OUT seconds... Could cause problems ...\e[0m"
252 fi
Yuli Shlosberg5571a862017-10-03 18:18:51 +0300253}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300254#
255
Yuli Shlosberg5571a862017-10-03 18:18:51 +0300256
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200257function healthCheck {
Yuli Shlosberg474996a2018-02-27 18:55:25 +0200258 curl --noproxy "*" ${IP}:9200/_cluster/health?pretty=true
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200259
260 echo "BE health-Check:"
Yuli Shlosberg474996a2018-02-27 18:55:25 +0200261 curl --noproxy "*" http://${IP}:8080/sdc2/rest/healthCheck
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200262
263 echo ""
264 echo ""
265 echo "FE health-Check:"
Yuli Shlosberg474996a2018-02-27 18:55:25 +0200266 curl --noproxy "*" http://${IP}:8181/sdc1/rest/healthCheck
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200267
268
269 echo ""
270 echo ""
Yuli Shlosberg474996a2018-02-27 18:55:25 +0200271 healthCheck_http_code=$(curl --noproxy "*" -o /dev/null -w '%{http_code}' -H "Accept: application/json" -H "Content-Type: application/json" -H "USER_ID: jh0003" http://${IP}:8080/sdc2/rest/v1/user/demo;)
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300272 if [[ ${healthCheck_http_code} != 200 ]]; then
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200273 echo "Error [${healthCheck_http_code}] while user existance check"
274 return ${healthCheck_http_code}
275 fi
276 echo "check user existance: OK"
277 return ${healthCheck_http_code}
278}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300279#
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200280
Tal Gitelmane224d0b2017-10-17 15:24:25 +0300281
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300282function command_exit_status {
283 status=$1
284 docker=$2
285 if [ "${status}" != "0" ] ; then
286 echo "[ ERROR ] Docker ${docker} run command exit with status [${status}]"
287 fi
288}
289#
290
291
292#
293# Run Containers
294#
295
296#Elastic-Search
297function sdc-es {
298 DOCKER_NAME="sdc-es"
299 echo "docker run sdc-elasticsearch..."
300 if [ ${LOCAL} = false ]; then
301 echo "pulling code"
302 docker pull ${PREFIX}/sdc-elasticsearch:${RELEASE}
303 fi
304 docker run -dit --name ${DOCKER_NAME} --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --env ES_JAVA_OPTS="-Xms512m -Xmx512m" --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --env ES_HEAP_SIZE=1024M --volume ${WORKSPACE}/data/ES:/usr/share/elasticsearch/data --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 9200:9200 --publish 9300:9300 ${PREFIX}/sdc-elasticsearch:${RELEASE} /bin/sh
305 command_exit_status $? ${DOCKER_NAME}
306 echo "please wait while ES is starting..."
307 monitor_docker ${DOCKER_NAME}
308}
309#
310
311
312#Init-Elastic-Search
313function sdc-init-es {
314 DOCKER_NAME="sdc-init-es"
315 echo "docker run sdc-init-elasticsearch..."
316 if [ ${LOCAL} = false ]; then
317 echo "pulling code"
318 docker pull ${PREFIX}/sdc-init-elasticsearch:${RELEASE}
319 fi
320 echo "Running sdc-init-es"
321 docker run --name ${DOCKER_NAME} --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments ${PREFIX}/sdc-init-elasticsearch:${RELEASE} > /dev/null 2>&1
322 rc=$?
323 docker_logs ${DOCKER_NAME}
324 if [[ ${rc} != 0 ]]; then exit ${rc}; fi
325}
326#
327
328
329#Cassandra
330function sdc-cs {
331 DOCKER_NAME="sdc-cs"
332 echo "docker run sdc-cassandra..."
333 if [ ${LOCAL} = false ]; then
334 docker pull ${PREFIX}/sdc-cassandra:${RELEASE}
335 fi
336 docker run -dit --name ${DOCKER_NAME} --env RELEASE="${RELEASE}" --env CS_PASSWORD="${CS_PASSWORD}" --env ENVNAME="${DEP_ENV}" --env HOST_IP=${IP} --env MAX_HEAP_SIZE="1536M" --env HEAP_NEWSIZE="512M" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/CS:/var/lib/cassandra --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 9042:9042 --publish 9160:9160 ${PREFIX}/sdc-cassandra:${RELEASE} /bin/sh
337 command_exit_status $? ${DOCKER_NAME}
338 echo "please wait while CS is starting..."
339 monitor_docker ${DOCKER_NAME}
340}
341#
342
343
344#Cassandra-init
345function sdc-cs-init {
346 DOCKER_NAME="sdc-cs-init"
347 echo "docker run sdc-cassandra-init..."
348 if [ ${LOCAL} = false ]; then
349 docker pull ${PREFIX}/sdc-cassandra-init:${RELEASE}
350 fi
351 docker run --name ${DOCKER_NAME} --env RELEASE="${RELEASE}" --env SDC_USER="${SDC_USER}" --env SDC_PASSWORD="${SDC_PASSWORD}" --env CS_PASSWORD="${CS_PASSWORD}" --env ENVNAME="${DEP_ENV}" --env HOST_IP=${IP} --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/CS:/var/lib/cassandra --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --volume ${WORKSPACE}/data/CS-Init:/root/chef-solo/cache ${PREFIX}/sdc-cassandra-init:${RELEASE} > /dev/null 2>&1
352 rc=$?
353 docker_logs ${DOCKER_NAME}
354 if [[ ${rc} != 0 ]]; then exit ${rc}; fi
355}
356#
357
358
359#Onboard Cassandra-init
360function sdc-cs-onboard-init {
361 DOCKER_NAME="sdc-cs-onboard-init"
362 echo "docker run sdc-cs-onboard-init..."
363 if [ ${LOCAL} = false ]; then
364 docker pull ${PREFIX}/sdc-onboard-cassandra-init:${RELEASE}
365 fi
366 docker run --name ${DOCKER_NAME} --env RELEASE="${RELEASE}" --env CS_HOST_IP=${IP} --env SDC_USER="${SDC_USER}" --env SDC_PASSWORD="${SDC_PASSWORD}" --env CS_PASSWORD="${CS_PASSWORD}" --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/CS:/var/lib/cassandra --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --volume ${WORKSPACE}/data/CS-Init:/root/chef-solo/cache ${PREFIX}/sdc-onboard-cassandra-init:${RELEASE}
367 rc=$?
368 docker_logs ${DOCKER_NAME}
369 if [[ ${rc} != 0 ]]; then exit ${rc}; fi
370}
371#
372
373
374#Kibana
375function sdc-kbn {
376 DOCKER_NAME="sdc-kbn"
377 echo "docker run sdc-kibana..."
378 if [ ${LOCAL} = false ]; then
379 docker pull ${PREFIX}/sdc-kibana:${RELEASE}
380 docker run --detach --name ${DOCKER_NAME} --env ENVNAME="${DEP_ENV}" --env NODE_OPTIONS="--max-old-space-size=200" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 5601:5601 ${PREFIX}/sdc-kibana:${RELEASE}
381 command_exit_status $? ${DOCKER_NAME}
382 fi
383}
384#
385
386
387#Back-End
388function sdc-BE {
389 DOCKER_NAME="sdc-BE"
390 echo "docker run sdc-backend..."
391 if [ ${LOCAL} = false ]; then
392 docker pull ${PREFIX}/sdc-backend:${RELEASE}
393 else
Tal Gitelmanef4b94e2018-08-02 17:11:25 +0300394 ADDITIONAL_ARGUMENTS=${BE_DEBUG_PORT}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300395 fi
396 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env cassandra_ssl_enabled="false" --env JAVA_OPTIONS="${BE_JAVA_OPTIONS}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/BE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 8443:8443 --publish 8080:8080 ${ADDITIONAL_ARGUMENTS} ${PREFIX}/sdc-backend:${RELEASE}
397 command_exit_status $? ${DOCKER_NAME}
398 echo "please wait while BE is starting..."
399 monitor_docker ${DOCKER_NAME}
400}
401#
402
403
404# Back-End-Init
405function sdc-BE-init {
406 DOCKER_NAME="sdc-BE-init"
407 echo "docker run sdc-backend-init..."
408 if [ ${LOCAL} = false ]; then
409 docker pull ${PREFIX}/sdc-backend-init:${RELEASE}
410 fi
411 docker run --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/BE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments ${PREFIX}/sdc-backend-init:${RELEASE} > /dev/null 2>&1
412 rc=$?
413 docker_logs ${DOCKER_NAME}
414 if [[ ${rc} != 0 ]]; then exit ${rc}; fi
415}
416#
417
418
419# Onboard Back-End
420function sdc-onboard-BE {
421 DOCKER_NAME="sdc-onboard-BE"
422 echo "docker run sdc-onboard-BE ..."
423# TODO Check the dir_perms action . do we need it here ??
424# dir_perms
425 if [ ${LOCAL} = false ]; then
426 docker pull ${PREFIX}/sdc-onboard-backend:${RELEASE}
427 else
428 ADDITIONAL_ARGUMENTS=${ONBOARD_DEBUG_PORT}
429 fi
430 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env cassandra_ssl_enabled="false" --env SDC_CLUSTER_NAME="SDC-CS-${DEP_ENV}" --env SDC_USER="${SDC_USER}" --env SDC_PASSWORD="${SDC_PASSWORD}" --env JAVA_OPTIONS="${ONBOARD_BE_JAVA_OPTIONS}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/ONBOARD:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 8445:8445 --publish 8081:8081 ${ADDITIONAL_ARGUMENTS} ${PREFIX}/sdc-onboard-backend:${RELEASE}
431 command_exit_status $? ${DOCKER_NAME}
432 echo "please wait while sdc-onboard-BE is starting..."
433 monitor_docker ${DOCKER_NAME}
434}
435#
436
437
438# Front-End
439function sdc-FE {
440 DOCKER_NAME="sdc-FE"
441 echo "docker run sdc-frontend..."
442 if [ ${LOCAL} = false ]; then
443 docker pull ${PREFIX}/sdc-frontend:${RELEASE}
Tal Gitelmanef4b94e2018-08-02 17:11:25 +0300444 else
445 ADDITIONAL_ARGUMENTS=${FE_DEBUG_PORT}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300446 fi
shrikantawachard139e092019-01-16 12:37:16 +0530447 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env JAVA_OPTIONS="${FE_JAVA_OPTIONS}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/FE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --volume ${WORKSPACE}/data/environments/plugins-configuration.yaml:${JETTY_BASE}/config/catalog-fe/plugins-configuration.yaml --publish 9443:9443 --publish 8181:8181 ${ADDITIONAL_ARGUMENTS} ${PREFIX}/sdc-frontend:${RELEASE}
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300448 command_exit_status $? ${DOCKER_NAME}
449 echo "please wait while FE is starting....."
450 monitor_docker ${DOCKER_NAME}
451}
452#
453
454
455# DCAE BackEnd
456function dcae-be {
457 if [ ! ${DCAE_ENABLE} ] ; then
458 return
459 fi
460 DOCKER_NAME="dcae-be"
461 echo "docker run ${DOCKER_NAME}..."
462 if [ ${LOCAL} = false ]; then
463 docker pull ${PREFIX}/${DOCKER_NAME}:${RELEASE}
464 fi
465 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env JAVA_OPTIONS="${DCAE_BE_JAVA_OPTIONS}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/DCAE-BE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/var/opt/dcae-be/chef-solo/environments --publish 8444:8444 --publish 8082:8082 ${PREFIX}/${DOCKER_NAME}:${RELEASE}
466 command_exit_status $? ${DOCKER_NAME}
467 echo "please wait while ${DOCKER_NAME^^} is starting....."
468 monitor_docker ${DOCKER_NAME}
469}
470#
471
472
473# DCAE Configuration
474function dcae-tools {
475 if [ ! ${DCAE_ENABLE} ] ; then
476 return
477 fi
478 DOCKER_NAME="dcae-tools"
479 echo "docker run ${DOCKER_NAME}..."
480 if [ ${LOCAL} = false ]; then
481 docker pull ${PREFIX}/${DOCKER_NAME}:${RELEASE}
482 fi
483 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/BE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/var/opt/dcae-tools/chef-solo/environments ${PREFIX}/${DOCKER_NAME}:${RELEASE}
484 command_exit_status $? ${DOCKER_NAME}
485 echo "please wait while ${DOCKER_NAME^^} is starting....."
486 monitor_docker ${DOCKER_NAME}
487
488}
489#
490
491
492# DCAE FrontEnd
493function dcae-fe {
494 if [ ! ${DCAE_ENABLE} ] ; then
495 return
496 fi
497 DOCKER_NAME="dcae-fe"
498 echo "docker run ${DOCKER_NAME}..."
499 if [ ${LOCAL} = false ]; then
500 docker pull ${PREFIX}/${DOCKER_NAME}:${RELEASE}
501 fi
502 docker run --detach --name ${DOCKER_NAME} --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env JAVA_OPTIONS="${DCAE_FE_JAVA_OPTIONS}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/DCAE-FE/:/var/lib/jetty/logs --volume ${WORKSPACE}/data/environments:/var/opt/dcae-fe/chef-solo/environments/ --publish 9444:9444 --publish 8183:8183 ${PREFIX}/${DOCKER_NAME}:${RELEASE}
503 command_exit_status $? ${DOCKER_NAME}
504 echo "please wait while ${DOCKER_NAME^^} is starting....."
505 monitor_docker ${DOCKER_NAME}
506
507}
508#
509
510
511# apis-sanity
512function sdc-api-tests {
513 if [[ ${RUN_API_TESTS} = true ]] ; then
Yuli Shlosbergd0eaeca2018-07-19 17:54:15 +0300514 healthCheck
515 healthCheck_http_code=$?
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300516 if [[ ${healthCheck_http_code} == 200 ]] ; then
517 echo "docker run sdc-api-tests..."
518 echo "Trigger sdc-api-tests docker, please wait..."
519
520 if [ ${LOCAL} = false ]; then
521 docker pull ${PREFIX}/sdc-api-tests:${RELEASE}
522 fi
523
524 docker run --detach --name sdc-api-tests --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env JAVA_OPTIONS="${API_TESTS_JAVA_OPTIONS}" --env SUITE_NAME=${API_SUITE} --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/sdc-api-tests/target:/var/lib/tests/target --volume ${WORKSPACE}/data/logs/sdc-api-tests/ExtentReport:/var/lib/tests/ExtentReport --volume ${WORKSPACE}/data/logs/sdc-api-tests/outputCsar:/var/lib/tests/outputCsar --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 9560:9560 ${PREFIX}/sdc-api-tests:${RELEASE} echo "please wait while SDC-API-TESTS is starting....."
525 monitor_docker sdc-api-tests
526 fi
527 fi
528}
529#
530
531
532# ui-sanity
533function sdc-ui-tests {
534
535 if [[ ${RUN_UI_TESTS} = true ]] ; then
Yuli Shlosbergd0eaeca2018-07-19 17:54:15 +0300536 healthCheck
537 healthCheck_http_code=$?
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300538 if [[ ${healthCheck_http_code} == 200 ]]; then
539 echo "docker run sdc-ui-tets..."
540 echo "Trigger sdc-ui-tests docker, please wait..."
541
542 if [ ${LOCAL} = false ]; then
543 docker pull ${PREFIX}/sdc-ui-tests:${RELEASE}
544 fi
Michael Landodc856bb2018-08-13 13:27:52 +0300545 RUN_SIMULATOR=true;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300546 sdc-sim
547 docker run --detach --name sdc-ui-tests --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env JAVA_OPTIONS="${UI_TESTS_JAVA_OPTIONS}" --env SUITE_NAME=${UI_SUITE} --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --ulimit nofile=4096:100000 ${LOCAL_TIME_MOUNT_CMD} --volume ${WORKSPACE}/data/logs/sdc-ui-tests/target:/var/lib/tests/target --volume ${WORKSPACE}/data/logs/sdc-ui-tests/ExtentReport:/var/lib/tests/ExtentReport --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments --publish 5901:5901 --publish 6901:6901 ${PREFIX}/sdc-ui-tests:${RELEASE}
548 echo "please wait while SDC-UI-TESTS is starting....."
549 monitor_docker sdc-ui-tests
550 fi
551 fi
552}
553#
554
555
556# SDC-Simulator
557function sdc-sim {
Lianhao Lu26166842018-09-07 10:42:10 +0800558 if [ "${RUN_SIMULATOR}" == true ]; then
Michael Landodc856bb2018-08-13 13:27:52 +0300559 echo "docker run sdc-webSimulator..."
560 if [ ${LOCAL} = false ]; then
561 docker pull ${PREFIX}/sdc-simulator:${RELEASE}
562 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300563
Michael Landodc856bb2018-08-13 13:27:52 +0300564 probe_sim
565 sim_stat=$?
Michael Landob751c962018-08-20 11:34:04 +0300566 if [ ${sim_stat} == 1 ]; then
Michael Landodc856bb2018-08-13 13:27:52 +0300567 docker run \
568 --detach \
569 --name sdc-sim \
570 --env FE_URL="${FE_URL}" \
571 --env JAVA_OPTIONS="${SIM_JAVA_OPTIONS}" \
572 --env ENVNAME="${DEP_ENV}" \
573 ${LOCAL_TIME_MOUNT_CMD} \
574 --volume ${WORKSPACE}/data/logs/WS/:/var/lib/jetty/logs \
575 --volume ${WORKSPACE}/data/environments:/root/chef-solo/environments \
576 --publish 8285:8080 \
577 --publish 8286:8443 ${PREFIX}/sdc-simulator:${RELEASE}
578 echo "please wait while SDC-WEB-SIMULATOR is starting....."
579 monitor_docker sdc-sim
580 fi
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300581 fi
582}
583#
584
585
586#
587# Main
588#
589
590# Handle command line arguments
Idan Amitdb3d5542017-12-07 11:33:32 +0200591while [ $# -gt 0 ]; do
Michael Lando451a3402017-02-19 10:28:42 +0200592 case $1 in
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300593
Idan Amitdb3d5542017-12-07 11:33:32 +0200594 # -r | --release - The specific docker version to pull and deploy
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200595 -r | --release )
596 shift 1 ;
597 RELEASE=$1;
598 shift 1;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300599
Idan Amitdb3d5542017-12-07 11:33:32 +0200600 # -e | --environment - The environment name you want to deploy
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200601 -e | --environment )
602 shift 1;
603 DEP_ENV=$1;
604 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300605
Idan Amitdb3d5542017-12-07 11:33:32 +0200606 # -p | --port - The port from which to connect to the docker nexus
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200607 -p | --port )
608 shift 1 ;
609 PORT=$1;
610 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300611
Idan Amitdb3d5542017-12-07 11:33:32 +0200612 # -l | --local - Use this for deploying your local dockers without pulling them first
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200613 -l | --local )
614 LOCAL=true;
615 shift 1;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300616
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200617 # -ta - Use this for running the APIs sanity docker after all other dockers have been deployed
618 -ta )
619 shift 1 ;
620 API_SUITE=$1;
621 RUN_API_TESTS=true;
622 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300623
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200624 # -tu - Use this for running the UI sanity docker after all other dockers have been deployed
625 -tu )
626 shift 1 ;
627 UI_SUITE=$1;
628 RUN_UI_TESTS=true;
629 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300630
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200631 # -tad - Use this for running the DEFAULT suite of tests in APIs sanity docker after all other dockers have been deployed
632 -tad | -t )
633 API_SUITE="onapApiSanity";
634 RUN_API_TESTS=true;
635 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300636
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200637 # -tud - Use this for running the DEFAULT suite of tests in UI sanity docker after all other dockers have been deployed
638 -tud )
639 UI_SUITE="onapUiSanity";
640 RUN_UI_TESTS=true;
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200641 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300642
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200643 # -d | --docker - The init specified docker
644 -d | --docker )
645 shift 1 ;
646 DOCKER=$1;
647 shift 1 ;;
Michael Landodc856bb2018-08-13 13:27:52 +0300648 # -sim | --simulator run the simulator
649 -sim | --simulator )
650 RUN_SIMULATOR=true;
651 shift 1 ;;
652 # -sim | --simulator run the simulator
653 -u | --fe_url )
654 shift 1 ;
655 FE_URL=$1;
656 shift 1 ;;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300657 # -dcae | --dcae - Use this to deploy DCAE upon SDC
658 -dcae | --dcae )
659 shift 1 ;
660 DCAE_ENABLE='True';;
661
Idan Amitdb3d5542017-12-07 11:33:32 +0200662 # -h | --help - Display the help message with all the available run options
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200663 -h | --help )
664 usage;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300665 exit ${SUCCESS};;
666
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200667 * )
668 usage;
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300669 exit ${FAILURE};;
Michael Lando451a3402017-02-19 10:28:42 +0200670 esac
Michael Lando451a3402017-02-19 10:28:42 +0200671done
672
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300673
liang dingd73c2872018-09-27 19:07:02 -0700674#Prefix those with WORKSPACE so it can be set to something other than /opt
dekstroza83520062018-05-03 16:47:08 +0100675[ -f ${WORKSPACE}/opt/config/env_name.txt ] && DEP_ENV=$(cat ${WORKSPACE}/opt/config/env_name.txt) || echo ${DEP_ENV}
676[ -f ${WORKSPACE}/opt/config/nexus_username.txt ] && NEXUS_USERNAME=$(cat ${WORKSPACE}/opt/config/nexus_username.txt) || NEXUS_USERNAME=release
677[ -f ${WORKSPACE}/opt/config/nexus_password.txt ] && NEXUS_PASSWD=$(cat ${WORKSPACE}/opt/config/nexus_password.txt) || NEXUS_PASSWD=sfWU3DFVdBr7GVxB85mTYgAW
678[ -f ${WORKSPACE}/opt/config/nexus_docker_repo.txt ] && NEXUS_DOCKER_REPO=$(cat ${WORKSPACE}/opt/config/nexus_docker_repo.txt) || NEXUS_DOCKER_REPO=nexus3.onap.org:${PORT}
679[ -f ${WORKSPACE}/opt/config/nexus_username.txt ] && docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
Michael Lando451a3402017-02-19 10:28:42 +0200680
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300681
Yuli Shlosbergd1bb2e52018-01-15 11:51:21 +0200682export IP=`ip route get 8.8.8.8 | awk '/src/{ print $7 }'`
dekstroza83520062018-05-03 16:47:08 +0100683#If OSX, then use this to get IP
684if [[ "$OSTYPE" == "darwin"* ]]; then
685 export IP=$(ipconfig getifaddr en0)
686fi
Idan Amitdb3d5542017-12-07 11:33:32 +0200687export PREFIX=${NEXUS_DOCKER_REPO}'/onap'
Idan Amitc7f57ec2017-08-31 14:26:21 +0300688
689if [ ${LOCAL} = true ]; then
Idan Amitdb3d5542017-12-07 11:33:32 +0200690 PREFIX='onap'
Idan Amitc7f57ec2017-08-31 14:26:21 +0300691fi
Michael Lando451a3402017-02-19 10:28:42 +0200692
693echo ""
694
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200695if [ -z "${DOCKER}" ]; then
Michael Lando4b9b9472018-06-02 19:14:05 +0300696 cleanup all
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200697 dir_perms
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200698 sdc-es
699 sdc-init-es
700 sdc-cs
701 sdc-cs-init
Gitelman, Tal (tg851x)19c9bda2018-03-19 19:07:30 +0200702# sdc-kbn
Avi Zivc175a0d2018-03-15 13:21:44 +0200703 sdc-cs-onboard-init
704 sdc-onboard-BE
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200705 sdc-BE
706 sdc-BE-init
707 sdc-FE
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300708 dcae-be
709 dcae-tools
710 dcae-fe
711 healthCheck
Michael Landodc856bb2018-08-13 13:27:52 +0300712 sdc-sim
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200713 sdc-api-tests
Areli, Fuss (af732p)062d4c12018-06-03 18:49:19 +0300714 sdc-ui-tests
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200715else
716 cleanup ${DOCKER}
svishnev0b698c42018-03-08 15:50:44 +0200717 dir_perms
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200718 ${DOCKER}
Yuli Shlosberge07a5162018-02-26 10:11:10 +0200719 healthCheck
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200720fi