nico_start.sh 3.69 KB
Newer Older
cazenave's avatar
cazenave committed
1
2
#!/usr/bin/env bash

cazenave's avatar
cazenave committed
3
DIR="C:/Users/sbrnc/IdeaProjects/vitam-ui-develop"
cazenave's avatar
cazenave committed
4

cazenave's avatar
cazenave committed
5
function start-si() {
cazenave's avatar
cazenave committed
6
cd $DIR
cazenave's avatar
cazenave committed
7
cd api/api-security/security-internal
cazenave's avatar
cazenave committed
8
9
echo "------------security internal----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cazenave's avatar
cazenave committed
10
11
12
cd $DIR
tail -f api/api-security/security-internal/log
}
cazenave's avatar
cazenave committed
13

cazenave's avatar
cazenave committed
14
function start-iami() {
cazenave's avatar
cazenave committed
15
cd $DIR
cazenave's avatar
cazenave committed
16
cd api/api-iam/iam-internal
cazenave's avatar
cazenave committed
17
18
echo "------------IAM internal----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cazenave's avatar
cazenave committed
19
20
21
cd $DIR
tail -f api/api-iam/iam-internal/log
}
cazenave's avatar
cazenave committed
22

cazenave's avatar
cazenave committed
23
function start-iame() {
cazenave's avatar
cazenave committed
24
cd $DIR
cazenave's avatar
cazenave committed
25
cd api/api-iam/iam-external
cazenave's avatar
cazenave committed
26
27
echo "------------IAM external----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cazenave's avatar
cazenave committed
28
29
30
31
32
33
34
35
36
37
38
cd $DIR
tail -f api/api-iam/iam-external/log
}
function start-cas() {
cd $DIR
cd cas/cas-server
echo "------------cas server----------------------"
java -Dspring.config.location=src/main/config/cas-server-application-dev.yml -jar target/cas-server.war  > log 2>&1 &
cd $DIR
tail -f cas/cas-server/log
}
cazenave's avatar
cazenave committed
39

cazenave's avatar
cazenave committed
40
function start-api() {
cazenave's avatar
cazenave committed
41
cd $DIR
cazenave's avatar
cazenave committed
42
43
44
45
46
47
48
49
50
51
52
53
54
cd api/api-security/security-internal
echo "------------security internal----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cd $DIR
echo "------------si + iami + iame + cas ----------------------"
cd api/api-iam/iam-internal
echo "------------IAM internal----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cd $DIR
cd api/api-iam/iam-external
echo "------------IAM external----------------------"
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cd $DIR
cazenave's avatar
cazenave committed
55
tail -f api/api-security/security-internal/log  api/api-iam/iam-external/log api/api-iam/iam-internal/log
cazenave's avatar
cazenave committed
56
}
cazenave's avatar
cazenave committed
57

cazenave's avatar
cazenave committed
58
function start-uiib() {
cazenave's avatar
cazenave committed
59
60
cd $DIR
echo "------------UI Identity----------------------"
cazenave's avatar
cazenave committed
61
cd ui/ui-identity
cazenave's avatar
cazenave committed
62
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cazenave's avatar
cazenave committed
63
64
65
cd $DIR
tail -f ui/ui-identity/log
}
cazenave's avatar
cazenave committed
66

cazenave's avatar
cazenave committed
67
function start-uipb() {
cazenave's avatar
cazenave committed
68
69
cd $DIR
echo "------------UI Portal----------------------"
cazenave's avatar
cazenave committed
70
cd ui/ui-portal
cazenave's avatar
cazenave committed
71
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cazenave's avatar
cazenave committed
72
73
74
cd $DIR
tail -f ui/ui-portal/log
}
cazenave's avatar
cazenave committed
75

cazenave's avatar
cazenave committed
76
function start-back() {
cazenave's avatar
cazenave committed
77
cd $DIR
cazenave's avatar
cazenave committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
echo "------------UI Identity----------------------"
cd ui/ui-identity
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cd $DIR
echo "------------UI Portal----------------------"
cd ui/ui-portal
mvn spring-boot:run -Dspring-boot.run.noverify > log 2>&1 &
cd $DIR
tail -f ui/ui-identity/log  ui/ui-portal/log
}


function start-pif() {
cd $DIR
cd ui/ui-frontend
cazenave's avatar
cazenave committed
93
94
95
96
echo "------------portal install----------------------"
npm install
echo "------------portal Identity----------------------"
npm run start:identity > log-identity-front 2>&1 &
cazenave's avatar
cazenave committed
97
98
99
cd $DIR
tail -f ui/ui-frontend/log-identity-front
}
cazenave's avatar
cazenave committed
100

cazenave's avatar
cazenave committed
101
function start-pf() {
cazenave's avatar
cazenave committed
102
cd $DIR
cazenave's avatar
cazenave committed
103
cd ui/ui-frontend
cazenave's avatar
cazenave committed
104
105
106
107
echo "------------portal install----------------------"
npm install
echo "------------portal ----------------------"
npm run start:portal > log-portal-front 2>&1 &
cazenave's avatar
cazenave committed
108
109
110
cd $DIR
tail -f ui/ui-frontend/log-portal-front
}
cazenave's avatar
cazenave committed
111

cazenave's avatar
cazenave committed
112
function start-pastis() {
cazenave's avatar
cazenave committed
113
cd $DIR
cazenave's avatar
cazenave committed
114
cd ui/ui-frontend
cazenave's avatar
cazenave committed
115
116
117
118
echo "------------portal install----------------------"
npm install
echo "------------portal ----------------------"
npm run start:pastis > log-pastis 2>&1 &
cazenave's avatar
cazenave committed
119
120
121
122
123
124
125
126
127
128
cd $DIR
tail -f ui/ui-frontend/log-pastis
}

case "$1" in

help)
echo "si:  security internal"
echo "iami: iam internal"
echo "iame: iam external"
cazenave's avatar
cazenave committed
129
echo "api: ******** si + iami + iame"
cazenave's avatar
cazenave committed
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
echo "cas: cas serveur"
echo "uiib: ui identity back"
echo "uipb: ui portal back"
echo "back: ****** uiib + uipb"
echo "pif: ui portal identity front"
echo "pf: portal front"
;;

si)
start-si
;;

iami)
start-iami
;;

iame)
start-iame
;;

cas)
start-cas
;;

api)
start-api
;;

uiib)
start-uiib
;;

uipb)
start-uipb
;;

back)
start-back
;;

pif)
start-pif
;;

pf)
start-pf
;;

pastis)
start-pastis
cazenave's avatar
cazenave committed
180
181
182
;;

esac
cazenave's avatar
cazenave committed
183