bin bash services boundary_event services definition_manager services

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
services[0]=boundary_event
services[1]=definition_manager
services[2]=end_event
services[3]=expression
services[4]=gateway
services[5]=http_node
services[6]=instance_manager
services[7]=intermediate_catch_event
services[8]=intermediate_throw_event
services[9]=mailer
services[10]=manual_task
services[11]=messenger
services[12]=receive_task
services[13]=resource_task
services[14]=restclient
services[15]=scheduler
services[16]=scheduler_worker
services[17]=start_event
services[18]=storage
services[19]=subprocess
services[20]=user_task
services[21]=activity
services[22]=call_activity
services[23]=simulation_manager
services[24]=sync_manager
for t in ${!services[*]}
do
echo Updating ${services[$t]}
docker rm -f engine_compose_${services[$t]}_1
docker rmi registry.gitlab.com/nextflow/engine/bpmn_engine/builds/${services[$t]}:latest
docker-compose up -d ${services[$t]}
sleep 5
done
# some additional
# copy htpasswd to engine
docker cp /var/mosaic-service-engine/config/.htpasswd engine_compose_http_node_1:/usr/local/bin/.htpasswd
#docker restart mosaic-service-engine