prima-twig 0.54.234 → 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 +65 -1
- 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
@@ -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
|
|
@@ -1489,7 +1493,56 @@ class Build
|
|
1489
1493
|
end
|
1490
1494
|
|
1491
1495
|
def create_domus_stack()
|
1492
|
-
|
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
|
1493
1546
|
end
|
1494
1547
|
|
1495
1548
|
def create_rogoreport_stack()
|
@@ -1510,6 +1563,7 @@ class Build
|
|
1510
1563
|
wait_for_stack_ready(get_stack_name("hutch")) unless stack_ready?(get_stack_name("hutch"))
|
1511
1564
|
if deploy_vianello_or_domus?
|
1512
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"))
|
1513
1567
|
end
|
1514
1568
|
|
1515
1569
|
update_service_defaults(get_stack_name("web"))
|
@@ -1534,6 +1588,7 @@ class Build
|
|
1534
1588
|
update_service_defaults(get_stack_name("crash"))
|
1535
1589
|
if deploy_vianello_or_domus?
|
1536
1590
|
update_service_defaults(get_stack_name("vianello"))
|
1591
|
+
update_service_defaults(get_stack_name("domus"))
|
1537
1592
|
end
|
1538
1593
|
|
1539
1594
|
activia_hostname = get_route53_hostname("activia")
|
@@ -1557,6 +1612,7 @@ class Build
|
|
1557
1612
|
hutch_hostname = get_route53_hostname("hutch")
|
1558
1613
|
legion_hostname = get_route53_hostname("legion")
|
1559
1614
|
vianello_hostname = get_route53_hostname("vianello")
|
1615
|
+
domus_hostname = get_route53_hostname("domus")
|
1560
1616
|
|
1561
1617
|
#launch_mimo(get_deploy_id)
|
1562
1618
|
|
@@ -1584,6 +1640,8 @@ class Build
|
|
1584
1640
|
projects_text.concat "
|
1585
1641
|
> Vianello url: https://#{vianello_hostname}" if deploy_vianello_or_domus?
|
1586
1642
|
projects_text.concat "
|
1643
|
+
> Domus url: https://#{domus_hostname}" if deploy_vianello_or_domus?
|
1644
|
+
projects_text.concat "
|
1587
1645
|
> RabbitMQ url: http://#{get_ec2_ip_address}:15672
|
1588
1646
|
> Elasticsearch url: http://#{get_ec2_ip_address}:9200
|
1589
1647
|
> Git branch: #{@git_branch}
|
@@ -1649,6 +1707,8 @@ projects_text.concat "
|
|
1649
1707
|
host = "api-intermediari-#{get_deploy_id}.qa.colaster.com"
|
1650
1708
|
when project.include?('vianello')
|
1651
1709
|
host = "vianello-#{get_deploy_id}.qa.colaster.com"
|
1710
|
+
when project.include?('vianello')
|
1711
|
+
host = "domus-#{get_deploy_id}.qa.colaster.com"
|
1652
1712
|
end
|
1653
1713
|
host
|
1654
1714
|
end
|
@@ -1712,6 +1772,8 @@ projects_text.concat "
|
|
1712
1772
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
1713
1773
|
when stack_name.include?('vianello')
|
1714
1774
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
1775
|
+
when stack_name.include?('vianello')
|
1776
|
+
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
1715
1777
|
end
|
1716
1778
|
resp = describe_stack_resource(stack_name, logical_resource_id)
|
1717
1779
|
resp = describe_load_balancers([resp.stack_resource_detail.physical_resource_id])
|
@@ -1766,6 +1828,8 @@ projects_text.concat "
|
|
1766
1828
|
logical_resource_id = 'ECSServiceLegionQA'
|
1767
1829
|
when stack_name.include?('vianello')
|
1768
1830
|
logical_resource_id = 'ECSServiceVianelloQA'
|
1831
|
+
when stack_name.include?('domus')
|
1832
|
+
logical_resource_id = 'ECSServiceDomus'
|
1769
1833
|
else
|
1770
1834
|
raise "Service name non gestito per lo stack #{stack_name}"
|
1771
1835
|
end
|