prima-twig 1.0.25 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/twig-build +228 -41
- data/bin/twig-feature +4 -1
- data/lib/prima_aws_client.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c989aabf822c2a40565c63569bab2de10523839a0ad3d22306fd2278f80df6e
|
|
4
|
+
data.tar.gz: 940621a31b416d977e7b658eed26c4baacc5832042eb32c7d2e821310f650b20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9914b248b39157243e36a7a013a9f4eed25a7dc7ad75de0ba68ab10b6a8b2dfde13d06b2bffb29b8cef4e29860d919d9db179c1bc474cf294d5cf67d75420204
|
|
7
|
+
data.tar.gz: 021bfb3a30acb9004b6442ebb2dfe53da078ba5fa3bc03d108815034cf37844f94dcf0e8828e7c5cd1b4b76a59722d871ccaf8ffa3d1be778edc0294be83e4dd
|
data/bin/twig-build
CHANGED
|
@@ -34,7 +34,6 @@ class Build
|
|
|
34
34
|
'hal9000' => {},
|
|
35
35
|
'fidaty' => {},
|
|
36
36
|
'peano' => {},
|
|
37
|
-
# 'rogoreport' => {},
|
|
38
37
|
'assange' => {},
|
|
39
38
|
'borat' => {},
|
|
40
39
|
'crash' => {},
|
|
@@ -46,7 +45,11 @@ class Build
|
|
|
46
45
|
'pyxis-npm' => {},
|
|
47
46
|
'starsky' => {},
|
|
48
47
|
'hutch' => {},
|
|
49
|
-
'maia' => {}
|
|
48
|
+
'maia' => {},
|
|
49
|
+
'legion' => {},
|
|
50
|
+
'vianello' => {},
|
|
51
|
+
'domus' => {}
|
|
52
|
+
# 'toretto' => {}
|
|
50
53
|
}
|
|
51
54
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
52
55
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
@@ -161,6 +164,7 @@ class Build
|
|
|
161
164
|
# manteniamo la struttura per lanciarlo facilmente anche da locale
|
|
162
165
|
`mkdir -p cloudformation/stacks/task cloudformation/stacks/route53 cloudformation/stacks/asg cloudformation/stacks/elb`
|
|
163
166
|
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/task/db.yml', response_target: 'cloudformation/stacks/task/db.yml'})
|
|
167
|
+
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/task/otel-agent.yml', response_target: 'cloudformation/stacks/task/otel-agent.yml'})
|
|
164
168
|
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/route53/qa.yml', response_target: 'cloudformation/stacks/route53/qa.yml'})
|
|
165
169
|
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/asg/ecs-asg-allinone.yml', response_target: 'cloudformation/stacks/asg/ecs-asg-allinone.yml'})
|
|
166
170
|
@s3.get_object({bucket: "prima-deploy", key: 'cloudformation/stacks/ecs-cluster.yml', response_target: 'cloudformation/stacks/ecs-cluster.yml'})
|
|
@@ -199,7 +203,7 @@ class Build
|
|
|
199
203
|
@tags = [
|
|
200
204
|
{
|
|
201
205
|
key: "qainit",
|
|
202
|
-
value: @git_branch
|
|
206
|
+
value: @git_branch.gsub(/[^a-zA-Z0-9\-]/,"-")
|
|
203
207
|
},
|
|
204
208
|
{
|
|
205
209
|
key: "hostname_pattern_priority",
|
|
@@ -331,6 +335,10 @@ class Build
|
|
|
331
335
|
parameter_key: "RedisIp",
|
|
332
336
|
parameter_value: get_ec2_ip_address
|
|
333
337
|
},
|
|
338
|
+
{
|
|
339
|
+
parameter_key: "LegionIp",
|
|
340
|
+
parameter_value: get_ec2_ip_address
|
|
341
|
+
},
|
|
334
342
|
{
|
|
335
343
|
parameter_key: "AssangeElbHostname",
|
|
336
344
|
parameter_value: get_alb_host(stack_name_alb)
|
|
@@ -354,11 +362,37 @@ class Build
|
|
|
354
362
|
{
|
|
355
363
|
parameter_key: 'MaiaElbHostname',
|
|
356
364
|
parameter_value: get_alb_host(stack_name_alb)
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
parameter_key: 'VianelloElbHostname',
|
|
368
|
+
parameter_value: get_alb_host(stack_name_alb)
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
parameter_key: 'DomusElbHostname',
|
|
372
|
+
parameter_value: get_alb_host(stack_name_alb)
|
|
357
373
|
}
|
|
358
374
|
]
|
|
359
375
|
|
|
360
376
|
create_stack(stack_name_route53, stack_body, parameters, @tags, @cf_role) unless stack_exists?(stack_name_route53)
|
|
361
377
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
|
378
|
+
|
|
379
|
+
stack_name_otel_agent = "ecs-task-otel-agent-qa-#{deploy_id}"
|
|
380
|
+
stack_body = IO.read('cloudformation/stacks/task/otel-agent.yml')
|
|
381
|
+
parameters = [
|
|
382
|
+
{
|
|
383
|
+
parameter_key: "Environment",
|
|
384
|
+
parameter_value: "qa"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
parameter_key: "ClusterId",
|
|
388
|
+
parameter_value: get_ecs_cluster_name
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
parameter_key: "ConfigVersion",
|
|
392
|
+
parameter_value: "3.7.0"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
create_stack(stack_name_otel_agent, stack_body, parameters, @tags, @cf_role) unless stack_exists?(stack_name_otel_agent)
|
|
362
396
|
end
|
|
363
397
|
|
|
364
398
|
def create_skynet_stack()
|
|
@@ -400,6 +434,45 @@ class Build
|
|
|
400
434
|
end
|
|
401
435
|
end
|
|
402
436
|
|
|
437
|
+
def create_legion_stack()
|
|
438
|
+
wait_for_artifact('prima-artifacts-encrypted', "microservices/legion/#{@projects["legion"]['revision']}-qa.tar.gz")
|
|
439
|
+
stack_name_legion = get_stack_name("legion")
|
|
440
|
+
git_checkout_version('legion', @projects["legion"]['revision'])
|
|
441
|
+
stack_body = File.read('projects/legion/deploy/task.yml')
|
|
442
|
+
parameters = [
|
|
443
|
+
{
|
|
444
|
+
parameter_key: "Environment",
|
|
445
|
+
parameter_value: "qa"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
parameter_key: "ReleaseVersion",
|
|
449
|
+
parameter_value: @projects["legion"]['revision']
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
parameter_key: "TaskDesiredCount",
|
|
453
|
+
parameter_value: "1"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
parameter_key: "ECSClusterName",
|
|
457
|
+
parameter_value: get_ecs_cluster_name
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
parameter_key: "HostnamePattern",
|
|
461
|
+
parameter_value: "legion-#{get_deploy_id}.qa.colaster.com"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
parameter_key: "HostnamePatternPriority",
|
|
465
|
+
parameter_value: hostname_pattern_priority
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
if stack_exists?(stack_name_legion)
|
|
469
|
+
cur_version = get_currently_deployed_version(stack_name_legion)
|
|
470
|
+
update_stack(stack_name_legion, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["legion"]['revision'])
|
|
471
|
+
else
|
|
472
|
+
create_stack(stack_name_legion, stack_body, parameters, @tags, @cf_role)
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
403
476
|
def create_urania_stack()
|
|
404
477
|
wait_for_artifact('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"]['revision']}-qa.tar.gz")
|
|
405
478
|
stack_name_urania = get_stack_name("urania")
|
|
@@ -689,38 +762,6 @@ class Build
|
|
|
689
762
|
end
|
|
690
763
|
end
|
|
691
764
|
|
|
692
|
-
# def create_rogoreport_stack()
|
|
693
|
-
# wait_for_artifact('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport-#{@projects["rogoreport"]['revision']}-qa.tar.gz")
|
|
694
|
-
#
|
|
695
|
-
# stack_name_rogoreport = get_stack_name("rogoreport")
|
|
696
|
-
# git_checkout_version('rogoreport', @projects["rogoreport"]['revision'])
|
|
697
|
-
# stack_body = IO.read('projects/rogoreport/deploy/task.yml')
|
|
698
|
-
# parameters = [
|
|
699
|
-
# {
|
|
700
|
-
# parameter_key: "Environment",
|
|
701
|
-
# parameter_value: "qa"
|
|
702
|
-
# },
|
|
703
|
-
# {
|
|
704
|
-
# parameter_key: "ReleaseVersion",
|
|
705
|
-
# parameter_value: "#{@projects["rogoreport"]['revision']}"
|
|
706
|
-
# },
|
|
707
|
-
# {
|
|
708
|
-
# parameter_key: "ReleaseName",
|
|
709
|
-
# parameter_value: "rogoreport"
|
|
710
|
-
# },
|
|
711
|
-
# {
|
|
712
|
-
# parameter_key: "ECSClusterName",
|
|
713
|
-
# parameter_value: get_ecs_cluster_name
|
|
714
|
-
# }
|
|
715
|
-
# ]
|
|
716
|
-
# if stack_exists?(stack_name_rogoreport)
|
|
717
|
-
# cur_version = get_currently_deployed_version(stack_name_rogoreport)
|
|
718
|
-
# update_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["rogoreport"]['revision'])
|
|
719
|
-
# else
|
|
720
|
-
# create_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role)
|
|
721
|
-
# end
|
|
722
|
-
# end
|
|
723
|
-
|
|
724
765
|
def create_assange_stack()
|
|
725
766
|
wait_for_artifact('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"]['revision']}-qa.tar.gz")
|
|
726
767
|
|
|
@@ -1396,6 +1437,114 @@ class Build
|
|
|
1396
1437
|
end
|
|
1397
1438
|
end
|
|
1398
1439
|
|
|
1440
|
+
def create_vianello_stack()
|
|
1441
|
+
if deploy_vianello_or_domus?
|
|
1442
|
+
wait_for_artifact('prima-artifacts-encrypted', "microservices/vianello/#{@projects["vianello"]['revision']}-qa.tar.gz")
|
|
1443
|
+
stack_name_vianello = "ecs-task-vianello-qa-#{get_deploy_id}"
|
|
1444
|
+
git_checkout_version('vianello', @projects["vianello"]['revision'])
|
|
1445
|
+
stack_body = File.read('projects/vianello/deploy/task.yml')
|
|
1446
|
+
parameters = [
|
|
1447
|
+
{
|
|
1448
|
+
parameter_key: "Environment",
|
|
1449
|
+
parameter_value: "qa"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
parameter_key: "ReleaseVersion",
|
|
1453
|
+
parameter_value: @projects["vianello"]['revision']
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
parameter_key: "ECSClusterName",
|
|
1457
|
+
parameter_value: get_ecs_cluster_name
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
parameter_key: "TaskDesiredCount",
|
|
1461
|
+
parameter_value: '1'
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
parameter_key: "HostnamePattern",
|
|
1465
|
+
parameter_value: "vianello-#{get_deploy_id}.qa.colaster.com"
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
parameter_key: "HostnamePatternPriority",
|
|
1469
|
+
parameter_value: (hostname_pattern_priority.to_i + 254).to_s
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
parameter_key: "ECSClusterName",
|
|
1473
|
+
parameter_value: get_ecs_cluster_name
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
parameter_key: "ALBShortName",
|
|
1477
|
+
parameter_value: "vianello-qa-#{get_deploy_id}"[0..27]
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
parameter_key: "EnvHash",
|
|
1481
|
+
parameter_value: get_deploy_id
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
if stack_exists?(stack_name_vianello)
|
|
1485
|
+
cur_version = get_currently_deployed_version(stack_name_vianello)
|
|
1486
|
+
update_stack(stack_name_vianello, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["vianello"]['revision'])
|
|
1487
|
+
else
|
|
1488
|
+
create_stack(stack_name_vianello, stack_body, parameters, @tags, @cf_role)
|
|
1489
|
+
end
|
|
1490
|
+
else
|
|
1491
|
+
true
|
|
1492
|
+
end
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1495
|
+
def create_domus_stack()
|
|
1496
|
+
if deploy_vianello_or_domus?
|
|
1497
|
+
wait_for_artifact('prima-artifacts-encrypted', "microservices/domus/#{@projects["domus"]['revision']}-#{get_deploy_id[0..7]}-qa.tar.gz")
|
|
1498
|
+
wait_for_stack_ready(get_stack_name("vianello")) unless stack_ready?(get_stack_name("vianello"))
|
|
1499
|
+
|
|
1500
|
+
stack_name_domus = get_stack_name("domus")
|
|
1501
|
+
git_checkout_version('domus', @projects["domus"]['revision'])
|
|
1502
|
+
stack_body = File.read('projects/domus/deploy/task.yml')
|
|
1503
|
+
parameters = [
|
|
1504
|
+
{
|
|
1505
|
+
parameter_key: "Environment",
|
|
1506
|
+
parameter_value: "qa"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
parameter_key: "ReleaseVersion",
|
|
1510
|
+
parameter_value: "#{@projects["domus"]['revision']}-#{get_deploy_id[0..7]}"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
parameter_key: "ALBShortName",
|
|
1514
|
+
parameter_value: "domus-qa-#{get_deploy_id}"[0..27]
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
parameter_key: "ECSClusterName",
|
|
1518
|
+
parameter_value: get_ecs_cluster_name
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
parameter_key: "EnvHash",
|
|
1522
|
+
parameter_value: get_deploy_id
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
parameter_key: "HostnamePattern",
|
|
1526
|
+
parameter_value: "domus-#{get_deploy_id}.qa.colaster.com"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
parameter_key: "HostnamePatternPriority",
|
|
1530
|
+
parameter_value: (hostname_pattern_priority.to_i + 254).to_s
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
parameter_key: "ApiUrl",
|
|
1534
|
+
parameter_value: "https://#{get_route53_hostname('vianello')}"
|
|
1535
|
+
}
|
|
1536
|
+
]
|
|
1537
|
+
if stack_exists?(stack_name_domus)
|
|
1538
|
+
cur_version = get_currently_deployed_version(stack_name_domus)
|
|
1539
|
+
update_stack(stack_name_domus, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["domus"]['revision'])
|
|
1540
|
+
else
|
|
1541
|
+
create_stack(stack_name_domus, stack_body, parameters, @tags, @cf_role)
|
|
1542
|
+
end
|
|
1543
|
+
else
|
|
1544
|
+
true
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1399
1548
|
def create_rogoreport_stack()
|
|
1400
1549
|
true
|
|
1401
1550
|
end
|
|
@@ -1406,12 +1555,16 @@ class Build
|
|
|
1406
1555
|
wait_for_stack_ready(get_stack_name("worker-ermes")) unless stack_ready?(get_stack_name("worker-ermes"))
|
|
1407
1556
|
wait_for_stack_ready(get_stack_name("ermes")) unless stack_ready?(get_stack_name("ermes"))
|
|
1408
1557
|
wait_for_stack_ready(get_stack_name("peano")) unless stack_ready?(get_stack_name("peano"))
|
|
1409
|
-
|
|
1558
|
+
wait_for_stack_ready(get_stack_name("legion")) unless stack_ready?(get_stack_name("legion"))
|
|
1410
1559
|
wait_for_stack_ready(get_stack_name("borat")) unless stack_ready?(get_stack_name("borat"))
|
|
1411
1560
|
wait_for_stack_ready(get_stack_name("activia")) unless stack_ready?(get_stack_name("activia"))
|
|
1412
1561
|
wait_for_stack_ready(get_stack_name("maia")) unless stack_ready?(get_stack_name("maia"))
|
|
1413
1562
|
wait_for_stack_ready(get_stack_name("crash")) unless stack_ready?(get_stack_name("crash"))
|
|
1414
1563
|
wait_for_stack_ready(get_stack_name("hutch")) unless stack_ready?(get_stack_name("hutch"))
|
|
1564
|
+
if deploy_vianello_or_domus?
|
|
1565
|
+
wait_for_stack_ready(get_stack_name("vianello")) unless stack_ready?(get_stack_name("vianello"))
|
|
1566
|
+
wait_for_stack_ready(get_stack_name("domus")) unless stack_ready?(get_stack_name("domus"))
|
|
1567
|
+
end
|
|
1415
1568
|
|
|
1416
1569
|
update_service_defaults(get_stack_name("web"))
|
|
1417
1570
|
update_service_defaults(get_stack_name("consumer-api"))
|
|
@@ -1422,7 +1575,7 @@ class Build
|
|
|
1422
1575
|
update_service_defaults(get_stack_name("hal9000"))
|
|
1423
1576
|
update_service_defaults(get_stack_name("fidaty"))
|
|
1424
1577
|
update_service_defaults(get_stack_name("peano"))
|
|
1425
|
-
# update_service_defaults(get_stack_name("
|
|
1578
|
+
# update_service_defaults(get_stack_name("legion")) TODO UNCOMMENT
|
|
1426
1579
|
update_service_defaults(get_stack_name("assange"))
|
|
1427
1580
|
update_service_defaults(get_stack_name("borat"))
|
|
1428
1581
|
update_service_defaults(get_stack_name("activia"))
|
|
@@ -1433,6 +1586,10 @@ class Build
|
|
|
1433
1586
|
update_service_defaults(get_stack_name("starsky"))
|
|
1434
1587
|
update_service_defaults(get_stack_name("hutch"))
|
|
1435
1588
|
update_service_defaults(get_stack_name("crash"))
|
|
1589
|
+
if deploy_vianello_or_domus?
|
|
1590
|
+
update_service_defaults(get_stack_name("vianello"))
|
|
1591
|
+
update_service_defaults(get_stack_name("domus"))
|
|
1592
|
+
end
|
|
1436
1593
|
|
|
1437
1594
|
activia_hostname = get_route53_hostname("activia")
|
|
1438
1595
|
assange_hostname = get_route53_hostname("assange")
|
|
@@ -1453,8 +1610,11 @@ class Build
|
|
|
1453
1610
|
crash_hostname = get_route53_hostname("crash")
|
|
1454
1611
|
starsky_hostname = get_route53_hostname("starsky")
|
|
1455
1612
|
hutch_hostname = get_route53_hostname("hutch")
|
|
1613
|
+
legion_hostname = get_route53_hostname("legion")
|
|
1614
|
+
vianello_hostname = get_route53_hostname("vianello")
|
|
1615
|
+
domus_hostname = get_route53_hostname("domus")
|
|
1456
1616
|
|
|
1457
|
-
launch_mimo(get_deploy_id)
|
|
1617
|
+
#launch_mimo(get_deploy_id)
|
|
1458
1618
|
|
|
1459
1619
|
projects_text = "
|
|
1460
1620
|
> Prima url: https://#{prima_hostname}
|
|
@@ -1473,9 +1633,14 @@ class Build
|
|
|
1473
1633
|
> Rachele url: http://#{rachele_hostname}:10040
|
|
1474
1634
|
> Maia App url: https://#{maia_app_hostname}
|
|
1475
1635
|
> Maia Intermediari url: https://#{maia_intermediari_hostname}
|
|
1636
|
+
> Legion url: http://#{legion_hostname}:8051
|
|
1476
1637
|
> Crash url: https://#{crash_hostname}
|
|
1477
1638
|
> Starsky url: https://#{starsky_hostname}
|
|
1478
|
-
> Hutch url: https://#{hutch_hostname}
|
|
1639
|
+
> Hutch url: https://#{hutch_hostname}"
|
|
1640
|
+
projects_text.concat "
|
|
1641
|
+
> Vianello url: https://#{vianello_hostname}
|
|
1642
|
+
> Domus url: https://#{domus_hostname}" if deploy_vianello_or_domus?
|
|
1643
|
+
projects_text.concat "
|
|
1479
1644
|
> RabbitMQ url: http://#{get_ec2_ip_address}:15672
|
|
1480
1645
|
> Elasticsearch url: http://#{get_ec2_ip_address}:9200
|
|
1481
1646
|
> Git branch: #{@git_branch}
|
|
@@ -1535,8 +1700,14 @@ class Build
|
|
|
1535
1700
|
host = "hutch-#{get_deploy_id}.qa.colaster.com"
|
|
1536
1701
|
when project.include?('maia-app')
|
|
1537
1702
|
host = "api-#{get_deploy_id}.qa.colaster.com"
|
|
1703
|
+
when project.include?('legion')
|
|
1704
|
+
host = "legion-#{get_deploy_id}.qa.colaster.com"
|
|
1538
1705
|
when project.include?('maia-intermediari')
|
|
1539
1706
|
host = "api-intermediari-#{get_deploy_id}.qa.colaster.com"
|
|
1707
|
+
when project.include?('vianello')
|
|
1708
|
+
host = "vianello-#{get_deploy_id}.qa.colaster.com"
|
|
1709
|
+
when project.include?('domus')
|
|
1710
|
+
host = "domus-#{get_deploy_id}.qa.colaster.com"
|
|
1540
1711
|
end
|
|
1541
1712
|
host
|
|
1542
1713
|
end
|
|
@@ -1596,6 +1767,12 @@ class Build
|
|
|
1596
1767
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1597
1768
|
when stack_name.include?('maia')
|
|
1598
1769
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1770
|
+
when stack_name.include?('legion')
|
|
1771
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1772
|
+
when stack_name.include?('vianello')
|
|
1773
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1774
|
+
when stack_name.include?('domus')
|
|
1775
|
+
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1599
1776
|
end
|
|
1600
1777
|
resp = describe_stack_resource(stack_name, logical_resource_id)
|
|
1601
1778
|
resp = describe_load_balancers([resp.stack_resource_detail.physical_resource_id])
|
|
@@ -1630,8 +1807,6 @@ class Build
|
|
|
1630
1807
|
logical_resource_id = 'ECSServiceActiviaQA'
|
|
1631
1808
|
when stack_name.include?('peano')
|
|
1632
1809
|
logical_resource_id = 'ECSServicePeanoQA'
|
|
1633
|
-
# when stack_name.include?('rogoreport')
|
|
1634
|
-
# logical_resource_id = 'ECSServiceRogoreport'
|
|
1635
1810
|
when stack_name.include?('assange')
|
|
1636
1811
|
logical_resource_id = 'ECSServiceAssangeQA'
|
|
1637
1812
|
when stack_name.include?('borat')
|
|
@@ -1648,6 +1823,12 @@ class Build
|
|
|
1648
1823
|
logical_resource_id = 'ECSServiceHutch'
|
|
1649
1824
|
when stack_name.include?('maia')
|
|
1650
1825
|
logical_resource_id = 'ECSServiceMaia'
|
|
1826
|
+
when stack_name.include?('legion')
|
|
1827
|
+
logical_resource_id = 'ECSServiceLegionQA'
|
|
1828
|
+
when stack_name.include?('vianello')
|
|
1829
|
+
logical_resource_id = 'ECSServiceVianelloQA'
|
|
1830
|
+
when stack_name.include?('domus')
|
|
1831
|
+
logical_resource_id = 'ECSServiceDomus'
|
|
1651
1832
|
else
|
|
1652
1833
|
raise "Service name non gestito per lo stack #{stack_name}"
|
|
1653
1834
|
end
|
|
@@ -1726,6 +1907,12 @@ class Build
|
|
|
1726
1907
|
})
|
|
1727
1908
|
end
|
|
1728
1909
|
|
|
1910
|
+
def deploy_vianello_or_domus?
|
|
1911
|
+
vianello_present = !@projects['vianello'].empty? && @projects['vianello'][:name] != 'master' && !@projects['vianello'][:default_branch]
|
|
1912
|
+
domus_present = !@projects['domus'].empty? && @projects['domus'][:name] != 'master' && !@projects['domus'][:default_branch]
|
|
1913
|
+
vianello_present || domus_present
|
|
1914
|
+
end
|
|
1915
|
+
|
|
1729
1916
|
def git_checkout_version(project, revision)
|
|
1730
1917
|
Dir.chdir "projects/#{project}"
|
|
1731
1918
|
exec_step "git checkout -- . && git checkout #{revision}"
|
data/bin/twig-feature
CHANGED
|
@@ -45,7 +45,8 @@ class Release
|
|
|
45
45
|
'pyxis-npm' => {},
|
|
46
46
|
'starsky' => {},
|
|
47
47
|
'hutch' => {},
|
|
48
|
-
'maia' => {}
|
|
48
|
+
'maia' => {},
|
|
49
|
+
'legion' => {}
|
|
49
50
|
}
|
|
50
51
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
51
52
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
@@ -650,6 +651,8 @@ class Release
|
|
|
650
651
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
651
652
|
when stack_name.include?('maia')
|
|
652
653
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
654
|
+
when stack_name.include?('legion')
|
|
655
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
653
656
|
end
|
|
654
657
|
resp = describe_stack_resource(stack_name, logical_resource_id)
|
|
655
658
|
resp = describe_load_balancers([resp.stack_resource_detail.physical_resource_id])
|
data/lib/prima_aws_client.rb
CHANGED
|
@@ -340,7 +340,7 @@ module PrimaAwsClient
|
|
|
340
340
|
def wait_for_artifact(bucket, path)
|
|
341
341
|
ready = artifact_exists?(bucket, path)
|
|
342
342
|
sleep_seconds = 13
|
|
343
|
-
output "Attendo che
|
|
343
|
+
output "Attendo che sia pronto l'artefatto #{path}...\n".yellow
|
|
344
344
|
retries = 0
|
|
345
345
|
while !ready
|
|
346
346
|
ready = true if artifact_exists?(bucket, path)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prima-twig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2020-
|
|
17
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk-autoscaling
|
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
328
328
|
- !ruby/object:Gem::Version
|
|
329
329
|
version: '0'
|
|
330
330
|
requirements: []
|
|
331
|
-
rubygems_version: 3.0.
|
|
331
|
+
rubygems_version: 3.0.1
|
|
332
332
|
signing_key:
|
|
333
333
|
specification_version: 4
|
|
334
334
|
summary: The Prima twig toolbelt
|