prima-twig 0.54.230 → 0.54.235
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-build +83 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb847e297b0e58e332361290ff95b3cb2832f1bf82c5b3620d27f7565b9d560
|
4
|
+
data.tar.gz: 82008df9b77221e704c1b59df53523e7f7a8ef089eeb562a27be088b43fb44f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e359005b80d2614bf8c31f0f5c18951e694c6adaeefce90520dbe4b32cc8cd2a96f054917f4a9aaa39f982da794d151f1f2d9acbad5de88b1f57bdc4b14d54
|
7
|
+
data.tar.gz: 9dc95aa16b0e27ff47145f925bdf3e79f8129c4ccc691f837fb49c8484d5131d03280fbe9ece71dc9f8159db3ee2e63608666d48d33e1dba2121bc41faac0c4f
|
data/bin/twig-build
CHANGED
@@ -47,8 +47,8 @@ class Build
|
|
47
47
|
'hutch' => {},
|
48
48
|
'maia' => {},
|
49
49
|
'legion' => {},
|
50
|
-
'vianello' => {}
|
51
|
-
|
50
|
+
'vianello' => {},
|
51
|
+
'domus' => {}
|
52
52
|
# 'toretto' => {}
|
53
53
|
}
|
54
54
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
@@ -203,7 +203,7 @@ class Build
|
|
203
203
|
@tags = [
|
204
204
|
{
|
205
205
|
key: "qainit",
|
206
|
-
value: @git_branch
|
206
|
+
value: @git_branch.gsub(/[^a-zA-Z0-9\-]/,"-")
|
207
207
|
},
|
208
208
|
{
|
209
209
|
key: "hostname_pattern_priority",
|
@@ -366,6 +366,10 @@ class Build
|
|
366
366
|
{
|
367
367
|
parameter_key: 'VianelloElbHostname',
|
368
368
|
parameter_value: get_alb_host(stack_name_alb)
|
369
|
+
},
|
370
|
+
{
|
371
|
+
parameter_key: 'DomusElbHostname',
|
372
|
+
parameter_value: get_alb_host(stack_name_alb)
|
369
373
|
}
|
370
374
|
]
|
371
375
|
|
@@ -1463,6 +1467,18 @@ class Build
|
|
1463
1467
|
{
|
1464
1468
|
parameter_key: "HostnamePatternPriority",
|
1465
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
|
1466
1482
|
}
|
1467
1483
|
]
|
1468
1484
|
if stack_exists?(stack_name_vianello)
|
@@ -1476,6 +1492,59 @@ class Build
|
|
1476
1492
|
end
|
1477
1493
|
end
|
1478
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
|
+
|
1479
1548
|
def create_rogoreport_stack()
|
1480
1549
|
true
|
1481
1550
|
end
|
@@ -1494,6 +1563,7 @@ class Build
|
|
1494
1563
|
wait_for_stack_ready(get_stack_name("hutch")) unless stack_ready?(get_stack_name("hutch"))
|
1495
1564
|
if deploy_vianello_or_domus?
|
1496
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"))
|
1497
1567
|
end
|
1498
1568
|
|
1499
1569
|
update_service_defaults(get_stack_name("web"))
|
@@ -1518,6 +1588,7 @@ class Build
|
|
1518
1588
|
update_service_defaults(get_stack_name("crash"))
|
1519
1589
|
if deploy_vianello_or_domus?
|
1520
1590
|
update_service_defaults(get_stack_name("vianello"))
|
1591
|
+
update_service_defaults(get_stack_name("domus"))
|
1521
1592
|
end
|
1522
1593
|
|
1523
1594
|
activia_hostname = get_route53_hostname("activia")
|
@@ -1541,6 +1612,7 @@ class Build
|
|
1541
1612
|
hutch_hostname = get_route53_hostname("hutch")
|
1542
1613
|
legion_hostname = get_route53_hostname("legion")
|
1543
1614
|
vianello_hostname = get_route53_hostname("vianello")
|
1615
|
+
domus_hostname = get_route53_hostname("domus")
|
1544
1616
|
|
1545
1617
|
#launch_mimo(get_deploy_id)
|
1546
1618
|
|
@@ -1568,6 +1640,8 @@ class Build
|
|
1568
1640
|
projects_text.concat "
|
1569
1641
|
> Vianello url: https://#{vianello_hostname}" if deploy_vianello_or_domus?
|
1570
1642
|
projects_text.concat "
|
1643
|
+
> Domus url: https://#{domus_hostname}" if deploy_vianello_or_domus?
|
1644
|
+
projects_text.concat "
|
1571
1645
|
> RabbitMQ url: http://#{get_ec2_ip_address}:15672
|
1572
1646
|
> Elasticsearch url: http://#{get_ec2_ip_address}:9200
|
1573
1647
|
> Git branch: #{@git_branch}
|
@@ -1633,6 +1707,8 @@ projects_text.concat "
|
|
1633
1707
|
host = "api-intermediari-#{get_deploy_id}.qa.colaster.com"
|
1634
1708
|
when project.include?('vianello')
|
1635
1709
|
host = "vianello-#{get_deploy_id}.qa.colaster.com"
|
1710
|
+
when project.include?('vianello')
|
1711
|
+
host = "domus-#{get_deploy_id}.qa.colaster.com"
|
1636
1712
|
end
|
1637
1713
|
host
|
1638
1714
|
end
|
@@ -1696,6 +1772,8 @@ projects_text.concat "
|
|
1696
1772
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
1697
1773
|
when stack_name.include?('vianello')
|
1698
1774
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
1775
|
+
when stack_name.include?('vianello')
|
1776
|
+
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
1699
1777
|
end
|
1700
1778
|
resp = describe_stack_resource(stack_name, logical_resource_id)
|
1701
1779
|
resp = describe_load_balancers([resp.stack_resource_detail.physical_resource_id])
|
@@ -1750,6 +1828,8 @@ projects_text.concat "
|
|
1750
1828
|
logical_resource_id = 'ECSServiceLegionQA'
|
1751
1829
|
when stack_name.include?('vianello')
|
1752
1830
|
logical_resource_id = 'ECSServiceVianelloQA'
|
1831
|
+
when stack_name.include?('domus')
|
1832
|
+
logical_resource_id = 'ECSServiceDomus'
|
1753
1833
|
else
|
1754
1834
|
raise "Service name non gestito per lo stack #{stack_name}"
|
1755
1835
|
end
|