-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
588 lines (484 loc) · 17.2 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
UID := $(shell id -u $$SUDO_USER)
UID ?= $(shell id -u $$USER)
COMPOSE_COMMAND := $(shell if [ -f "`which podman-compose`" ]; then echo 'podman-compose'; else echo 'docker compose'; fi)
# some coloring
RED = $(shell echo -e '\033[1;31m')
GREEN = $(shell echo -e '\033[1;32m')
YELLOW = $(shell echo -e '\033[1;33m')
NC = $(shell echo -e '\033[0m') # No Color
.EXPORT_ALL_VARIABLES:
.PHONY: deps
deps:
@echo "Hint: you may need to run this as root on some linux distros. Try it in case of any error."
cd Tyr && ${MAKE} docker_deps
cd Mimir && ${MAKE} docker_deps
cd Frey && ${MAKE} docker_deps
cd Forseti && ${MAKE} docker_deps
cd Bragi && ${MAKE} docker_deps
cd Sigrun && ${MAKE} docker_deps
cd Hugin && ${MAKE} docker_deps
cd Gullveig && ${MAKE} docker_deps
cd Skirnir && ${MAKE} docker_deps
cd Fenrir && ${MAKE} docker_deps
.PHONY: kill_dev
kill_dev: export ENV_FILENAME=.env.development
kill_dev:
${MAKE} kill
.PHONY: kill
kill:
@printf "${RED}This will completely remove ALL data and ALL saved internal configuration.${NC}" ; \
printf "\n" ; \
printf "Are you sure you want to continue? (y/N)" ; \
read answer ; \
if [ "$$answer" = "Y" ] || [ "$$answer" = "y" ] ; then \
${COMPOSE_COMMAND} down --remove-orphans ; \
cd Fenrir && ${MAKE} kill ; \
cd ../Tyr && ${MAKE} kill ; \
cd ../Mimir && ${MAKE} kill ; \
cd ../Frey && ${MAKE} kill ; \
cd ../Forseti && ${MAKE} kill ; \
cd ../Sigrun && ${MAKE} kill ; \
cd ../Bragi && ${MAKE} kill ; \
cd ../Hugin && ${MAKE} kill ; \
cd ../Skirnir && ${MAKE} kill ; \
cd ../Database && ${MAKE} kill ; \
docker volume rm `docker volume ls | grep 'pantheon' | grep 'datavolume02' | awk '{print $$2}'` ; \
docker volume rm `docker volume ls | grep 'pantheon' | grep 'backupvolume01' | awk '{print $$2}'` ; \
docker volume rm `docker volume ls | grep 'pantheon' | grep 'configvolume01' | awk '{print $$2}'` ; \
fi
.PHONY: container
container:
cd Common/ReverseProxy && docker build -t pantheon-reverse-proxy .
${COMPOSE_COMMAND} down
${COMPOSE_COMMAND} up --build -d
.PHONY: container_dev
container_dev: export ENV_FILENAME=.env.development
container_dev:
${MAKE} container
.PHONY: reverse_proxy_start
reverse_proxy_start:
@if [ -z "`netstat -tunl | grep ':80 '`" ]; then \
cd Common/ReverseProxy && \
docker run \
-p 80:80 \
--network=pantheon_internal_net \
--name pantheon-reverse-proxy-container \
-d pantheon-reverse-proxy ; \
fi
.PHONY: reverse_proxy_stop
reverse_proxy_stop:
@docker stop pantheon-reverse-proxy-container || true
@docker rm pantheon-reverse-proxy-container || true
.PHONY: pantheon_run
pantheon_run: export ENV_FILENAME=.env.development
pantheon_run:
@cp Env/.env.development Tyr/.env.development
@cp Env/.env.development Sigrun/.env.development
@cp Env/.env.development Bragi/.env.development
@cp Env/.env.development Forseti/.env.development
@cp Env/.env.development Skirnir/.env.development
@if [ -f Env/.env.development.local ]; then \
cat Env/.env.development.local >> Tyr/.env.development && \
cat Env/.env.development.local >> Sigrun/.env.development && \
cat Env/.env.development.local >> Bragi/.env.development && \
cat Env/.env.development.local >> Forseti/.env.development && \
cat Env/.env.development.local >> Skirnir/.env.development ; \
fi
@${COMPOSE_COMMAND} up -d
@cd Mimir && ${MAKE} docker_enable_debug
@cd Frey && ${MAKE} docker_enable_debug
@cd Hugin && ${MAKE} docker_enable_debug
@cd Gullveig && ${MAKE} docker_enable_debug
@echo "----------------------------------------------------------------------------------"; \
echo "Hint: you may need to run this as root on some linux distros. Try it in case of any error."; \
echo "----------------------------------------------------------------------------------"; \
echo "Please see README.md for addresses of services and further instructions." ;
.PHONY: pantheon_stop
pantheon_stop: reverse_proxy_stop
pantheon_stop: export ENV_FILENAME=.env.development
pantheon_stop:
cd Database && make stop 2>/dev/null || true # gracefully stop the db
${COMPOSE_COMMAND} down
.PHONY: dev_tyr
dev_tyr:
cd Tyr && ${MAKE} docker_dev
.PHONY: dev_forseti
dev_forseti:
cd Forseti && ${MAKE} docker_dev
.PHONY: dev_sigrun
dev_sigrun:
cd Sigrun && ${MAKE} docker_dev
.PHONY: dev_bragi
dev_bragi:
cd Bragi && ${MAKE} docker_dev
.PHONY: dev_skirnir
dev_skirnir:
cd Skirnir && ${MAKE} docker_dev
.PHONY: forseti_stop
forseti_stop:
cd Forseti && ${MAKE} docker_stop
.PHONY: tyr_stop
tyr_stop:
cd Tyr && ${MAKE} docker_stop
.PHONY: sigrun_stop
sigrun_stop:
cd Sigrun && ${MAKE} docker_stop
.PHONY: bragi_stop
bragi_stop:
cd Bragi && ${MAKE} docker_stop
.PHONY: skirnir_stop
skirnir_stop:
cd Skirnir && ${MAKE} docker_stop
.PHONY: dev
dev: pantheon_run
${MAKE} reverse_proxy_stop
${MAKE} reverse_proxy_start
${MAKE} deps
${MAKE} migrate
bash ./parallel_dev.sh
.PHONY: migrate
migrate:
cd Mimir && ${MAKE} docker_migrate
cd Frey && ${MAKE} docker_migrate
cd Hugin && ${MAKE} docker_migrate
.PHONY: shell_tyr
shell_tyr:
cd Tyr && ${MAKE} shell
.PHONY: shell_hermod
shell_hermod:
cd Hermod && ${MAKE} shell
.PHONY: shell_hugin
shell_hugin:
cd Hugin && ${MAKE} shell
.PHONY: shell_mimir
shell_mimir:
cd Mimir && ${MAKE} shell
.PHONY: shell_frey
shell_frey:
cd Frey && ${MAKE} shell
.PHONY: shell_forseti
shell_forseti:
cd Forseti && ${MAKE} shell
.PHONY: shell_sigrun
shell_sigrun:
cd Sigrun && ${MAKE} shell
.PHONY: shell_bragi
shell_bragi:
cd Bragi && ${MAKE} shell
.PHONY: shell_db
shell_db:
cd Database && ${MAKE} shell
.PHONY: shell_gullveig
shell_gullveig:
cd Gullveig && ${MAKE} shell
.PHONY: shell_skirnir
shell_skirnir:
cd Skirnir && ${MAKE} shell
.PHONY: shell_fenrir
shell_fenrir:
cd Fenrir && ${MAKE} shell
# Some shortcuts for common tasks
.PHONY: seed
seed:
cd Frey && ${MAKE} docker_seed
cd Mimir && ${MAKE} docker_seed
.PHONY: seed_bigevent
seed_bigevent:
cd Frey && ${MAKE} docker_seed
cd Mimir && ${MAKE} docker_seed_bigevent
.PHONY: seed_tournament
seed_tournament:
cd Frey && ${MAKE} docker_seed
cd Mimir && ${MAKE} docker_seed_tournament
.PHONY: dump_users
dump_users:
cd Frey && ${MAKE} docker_dump_users
.PHONY: dump_last_mail
dump_last_mail:
cd Hermod && ${MAKE} docker_last_mail
.PHONY: bragi_eslint
bragi_eslint:
cd Bragi && ${MAKE} docker_eslint > ../tmp/bragi_eslint.log 2>&1
.PHONY: bragi_prettier
bragi_prettier:
cd Bragi && ${MAKE} docker_prettier > ../tmp/bragi_prettier.log 2>&1
.PHONY: bragi_typecheck
bragi_typecheck:
cd Bragi && ${MAKE} docker_typecheck > ../tmp/bragi_typecheck.log 2>&1
.PHONY: forseti_eslint
forseti_eslint:
cd Forseti && ${MAKE} docker_eslint > ../tmp/forseti_eslint.log 2>&1
.PHONY: forseti_prettier
forseti_prettier:
cd Forseti && ${MAKE} docker_prettier > ../tmp/forseti_prettier.log 2>&1
.PHONY: forseti_typecheck
forseti_typecheck:
cd Forseti && ${MAKE} docker_typecheck > ../tmp/forseti_typecheck.log 2>&1
.PHONY: frey_lint
frey_lint:
cd Frey && ${MAKE} docker_lint > ../tmp/frey_lint.log 2>&1
.PHONY: frey_analyze
frey_analyze:
cd Frey && ${MAKE} docker_analyze > ../tmp/frey_analyze.log 2>&1
.PHONY: frey_lint_common
frey_lint_common:
cd Frey && ${MAKE} docker_lint_common > ../tmp/frey_lint_common.log 2>&1
.PHONY: gullveig_lint
gullveig_lint:
cd Gullveig && ${MAKE} docker_lint > ../tmp/gullveig_lint.log 2>&1
.PHONY: gullveig_analyze
gullveig_analyze:
cd Gullveig && ${MAKE} docker_analyze > ../tmp/gullveig_analyze.log 2>&1
.PHONY: hugin_lint
hugin_lint:
cd Hugin && ${MAKE} docker_lint > ../tmp/hugin_lint.log 2>&1
.PHONY: hugin_analyze
hugin_analyze:
cd Hugin && ${MAKE} docker_analyze > ../tmp/hugin_analyze.log 2>&1
.PHONY: mimir_lint
mimir_lint:
cd Mimir && ${MAKE} docker_lint > ../tmp/mimir_lint.log 2>&1
.PHONY: mimir_analyze
mimir_analyze:
cd Mimir && ${MAKE} docker_analyze > ../tmp/mimir_analyze.log 2>&1
.PHONY: skirnir_eslint
skirnir_eslint:
cd Skirnir && ${MAKE} docker_eslint > ../tmp/skirnir_eslint.log 2>&1
.PHONY: skirnir_prettier
skirnir_prettier:
cd Skirnir && ${MAKE} docker_prettier > ../tmp/skirnir_prettier.log 2>&1
.PHONY: skirnir_typecheck
skirnir_typecheck:
cd Skirnir && ${MAKE} docker_typecheck > ../tmp/skirnir_typecheck.log 2>&1
.PHONY: sigrun_eslint
sigrun_eslint:
cd Sigrun && ${MAKE} docker_eslint > ../tmp/sigrun_eslint.log 2>&1
.PHONY: sigrun_prettier
sigrun_prettier:
cd Sigrun && ${MAKE} docker_prettier > ../tmp/sigrun_prettier.log 2>&1
.PHONY: sigrun_typecheck
sigrun_typecheck:
cd Sigrun && ${MAKE} docker_typecheck > ../tmp/sigrun_typecheck.log 2>&1
.PHONY: tyr_eslint
tyr_eslint:
cd Tyr && ${MAKE} docker_eslint > ../tmp/tyr_eslint.log 2>&1
.PHONY: tyr_prettier
tyr_prettier:
cd Tyr && ${MAKE} docker_prettier > ../tmp/tyr_prettier.log 2>&1
.PHONY: tyr_typecheck
tyr_typecheck:
cd Tyr && ${MAKE} docker_typecheck > ../tmp/tyr_typecheck.log 2>&1
.PHONY: fenrir_eslint
fenrir_eslint:
cd Fenrir && ${MAKE} docker_eslint > ../tmp/fenrir_eslint.log 2>&1
.PHONY: fenrir_prettier
fenrir_prettier:
cd Fenrir && ${MAKE} docker_prettier > ../tmp/fenrir_prettier.log 2>&1
.PHONY: fenrir_typecheck
fenrir_typecheck:
cd Fenrir && ${MAKE} docker_typecheck > ../tmp/fenrir_typecheck.log 2>&1
.PHONY: lint
lint:
${MAKE} -j16 bragi_eslint bragi_prettier bragi_typecheck \
forseti_eslint forseti_prettier forseti_typecheck \
frey_lint frey_analyze frey_lint_common \
gullveig_lint gullveig_analyze \
hugin_lint hugin_analyze \
mimir_lint mimir_analyze \
skirnir_eslint skirnir_prettier skirnir_typecheck \
sigrun_eslint sigrun_prettier sigrun_typecheck \
tyr_eslint tyr_prettier tyr_typecheck \
fenrir_eslint fenrir_prettier fenrir_typecheck || { \
LINT_RESULT=$$? ;\
cat tmp/* ;\
exit $$LINT_RESULT ;\
}
.PHONY: test
test:
cd Tyr && ${MAKE} docker_test
cd Frey && ${MAKE} docker_test
cd Mimir && ${MAKE} docker_test
.PHONY: autofix
autofix:
cd Mimir && ${MAKE} docker_autofix
cd Frey && ${MAKE} docker_autofix
cd Frey && ${MAKE} docker_autofix_common
cd Tyr && ${MAKE} docker_autofix
cd Forseti && ${MAKE} docker_autofix
cd Sigrun && ${MAKE} docker_autofix
cd Hugin && ${MAKE} docker_autofix
cd Gullveig && ${MAKE} docker_autofix
cd Bragi && ${MAKE} docker_autofix
cd Skirnir && ${MAKE} docker_autofix
cd Fenrir && ${MAKE} docker_autofix
.PHONY: proto_gen
proto_gen:
cd Mimir && ${MAKE} docker_proto_gen
cd Frey && ${MAKE} docker_proto_gen
cd Forseti && ${MAKE} docker_proto_gen
cd Tyr && ${MAKE} docker_proto_gen
cd Sigrun && ${MAKE} docker_proto_gen
cd Hugin && ${MAKE} docker_proto_gen
# Db import/export
.PHONY: db_export
db_export:
cd Database && ${MAKE} db_export
.PHONY: db_import
db_import:
cd Database && ${MAKE} db_import
# Prod related tasks & shortcuts
.PHONY: prod_deps
prod_deps:
cd Mimir && ${MAKE} docker_deps
cd Frey && ${MAKE} docker_deps
cd Tyr && ${MAKE} docker_deps
cd Forseti && ${MAKE} docker_deps
cd Hugin && ${MAKE} docker_deps
cd Gullveig && ${MAKE} docker_deps
# sigrun, skirnir and bragi should install deps after prebuild
.PHONY: prod_build_basic_images
prod_build_basic_images:
docker build -t docker.io/ctizen/pantheon_backend_common ./Common/Backend
docker build -t docker.io/ctizen/pantheon_frontend_common ./Common/Frontend
.PHONY: prod_build_tyr
prod_build_tyr: export NODE_ENV=production
prod_build_tyr: # this is for automated builds, don't run it manually
cd Tyr && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild
.PHONY: prod_build_forseti
prod_build_forseti: export NODE_ENV=production
prod_build_forseti: # this is for automated builds, don't run it manually
cd Forseti && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild
.PHONY: prod_build_sigrun
prod_build_sigrun: export NODE_ENV=production
prod_build_sigrun: # this is for automated builds, don't run it manually
cd Sigrun && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps
.PHONY: prod_build_bragi
prod_build_bragi: export NODE_ENV=production
prod_build_bragi: # this is for automated builds, don't run it manually
cd Bragi && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps
.PHONY: prod_build_skirnir
prod_build_skirnir: export NODE_ENV=production
prod_build_skirnir: # this is for automated builds, don't run it manually
cd Skirnir && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps && ${MAKE} docker_reload_pm2
.PHONY: prod_compile
prod_compile: export ENV_FILENAME=.env.production
prod_compile:
@cp Env/.env.production Tyr/.env.production
@cp Env/.env.production Sigrun/.env.production
@cp Env/.env.production Forseti/.env.production
@cp Env/.env.production Bragi/.env.production
@cp Env/.env.production Skirnir/.env.production
${MAKE} prod_deps
${MAKE} migrate
${MAKE} prod_build_tyr
${MAKE} prod_build_forseti
${MAKE} prod_build_sigrun && cd Sigrun && ${MAKE} docker_reload_pm2
cd Sigrun && ${MAKE} docker_warmup
${MAKE} prod_build_bragi && cd Bragi && ${MAKE} docker_reload_pm2
cd Bragi && ${MAKE} docker_warmup
${MAKE} prod_build_skirnir && cd Skirnir && ${MAKE} docker_reload_pm2
.PHONY: prod_start
prod_start: export ENV_FILENAME=.env.production
prod_start:
ALLOWED_SENDER_DOMAINS=`cat Env/.env.production | grep ALLOWED_SENDER_DOMAINS= | awk -F'=' '{print $$2}'` ${COMPOSE_COMMAND} up -d
.PHONY: prod_stop_all
prod_stop_all: export ENV_FILENAME=.env.production
prod_stop_all:
cd Database && make stop 2>/dev/null || true # gracefully stop the db
@${COMPOSE_COMMAND} down
.PHONY: prod_stop
prod_stop: export ENV_FILENAME=.env.production
prod_stop:
@${COMPOSE_COMMAND} down forseti.pantheon.internal frey.pantheon.internal hermod.pantheon.internal \
hugin.pantheon.internal mimir.pantheon.internal sigrun.pantheon.internal tyr.pantheon.internal \
gullveig.pantheon.internal bragi.pantheon.internal skirnir.pantheon.internal
.PHONY: prod_restart
prod_restart:
${MAKE} prod_stop
${MAKE} prod_start
.PHONY: prod_update
prod_update:
git status --short | grep -v 'Sigrun-dist/server.js' | awk '{print $2}' | xargs git checkout --
git fetch
git checkout origin/master
${MAKE} pull
${MAKE} prod_restart
${MAKE} prod_compile
.PHONY: pull
pull:
@${COMPOSE_COMMAND} pull
.PHONY: bootstrap_admin
bootstrap_admin:
cd Frey && ${MAKE} docker_seed
# i18n related
.PHONY: i18n_extract
i18n_extract:
cd Tyr && ${MAKE} docker_i18n_extract
cd Forseti && ${MAKE} docker_i18n_extract
cd Sigrun && ${MAKE} docker_i18n_extract
cd Bragi && ${MAKE} docker_i18n_extract
.PHONY: i18n_compile
i18n_compile:
cd Tyr && ${MAKE} docker_i18n_update
cd Forseti && ${MAKE} docker_i18n_update
cd Sigrun && ${MAKE} docker_i18n_update
cd Bragi && ${MAKE} docker_i18n_update
.PHONY: bump_release
bump_release:
git rev-parse --short HEAD > Common/ReleaseTag.txt
git add Common/ReleaseTag.txt
git commit --message "Updated release tag"
.PHONY: e2e
e2e: export ENV_FILENAME=.env.e2e
e2e:
cd Fenrir && ${MAKE} docker_run
.PHONY: e2e_local
e2e_dev: export ENV_FILENAME=.env.development
e2e_dev:
@${COMPOSE_COMMAND} up fenrir.pantheon.internal -d
cd Fenrir && ${MAKE} docker_deps && ${MAKE} docker_run
.PHONY: e2e_build_tyr
e2e_build_tyr: export NODE_ENV=development
e2e_build_tyr: export ENV_FILENAME=.env.e2e
e2e_build_tyr: # this is for automated builds, don't run it manually
cd Tyr && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild
.PHONY: e2e_build_forseti
e2e_build_forseti: export NODE_ENV=development
e2e_build_forseti: export ENV_FILENAME=.env.e2e
e2e_build_forseti: # this is for automated builds, don't run it manually
cd Forseti && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild
.PHONY: e2e_build_sigrun
e2e_build_sigrun: export NODE_ENV=development
e2e_build_sigrun: export ENV_FILENAME=.env.e2e
e2e_build_sigrun: # this is for automated builds, don't run it manually
cd Sigrun && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps
.PHONY: e2e_build_bragi
e2e_build_bragi: export NODE_ENV=development
e2e_build_bragi: export ENV_FILENAME=.env.e2e
e2e_build_bragi: # this is for automated builds, don't run it manually
cd Bragi && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_cleanup_prebuilts && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps
.PHONY: e2e_build_skirnir
e2e_build_skirnir: export NODE_ENV=development
e2e_build_skirnir: export ENV_FILENAME=.env.e2e
e2e_build_skirnir: # this is for automated builds, don't run it manually
cd Skirnir && ${MAKE} docker_deps && ${MAKE} docker_build && ${MAKE} docker_prebuild && ${MAKE} docker_prod_deps && ${MAKE} docker_reload_pm2
.PHONY: e2e_compile
e2e_compile: export ENV_FILENAME=.env.e2e
e2e_compile:
@cp Env/.env.e2e Tyr/.env.e2e
@cp Env/.env.e2e Sigrun/.env.e2e
@cp Env/.env.e2e Forseti/.env.e2e
@cp Env/.env.e2e Bragi/.env.e2e
@cp Env/.env.e2e Skirnir/.env.e2e
${MAKE} deps
${MAKE} migrate
${MAKE} e2e_build_tyr
${MAKE} e2e_build_forseti
${MAKE} e2e_build_sigrun && cd Sigrun && ${MAKE} docker_reload_pm2
${MAKE} e2e_build_bragi && cd Bragi && ${MAKE} docker_reload_pm2
${MAKE} e2e_build_skirnir && cd Skirnir && ${MAKE} docker_reload_pm2
.PHONY: e2e_run
e2e_run: export ENV_FILENAME=.env.e2e
e2e_run:
@${COMPOSE_COMMAND} up -d
@${COMPOSE_COMMAND} up fenrir.pantheon.internal -d