prima-twig 1.0.26 → 1.0.27
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 +57 -39
- data/bin/twig-feature +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8bf824656a5910664fc04d8dba733fe4ee21c407a7d190bd4d5feef3831cbb3b
|
|
4
|
+
data.tar.gz: d9b9b5e74d17fba0fcbedef5098c1405f7828fe8cf0fdefe72c83b961200aae3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf3b83d3ca22c8fab59d8b3ddeec15adf00b799ba1d2c50da33db7c1085061c5fac67bff890bdc286c8a053e6433c80dad515c02a422a7cf0321f98f352abaee
|
|
7
|
+
data.tar.gz: 1fb15b8eb520c709b0089bd165973a04782e5b8981e3a2a2888fdf9d2fed60606f0ded89ba1eaab1ba9359c98152cfc94fdc1937bd7701011cd2d392b4abb959
|
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,8 @@ class Build
|
|
|
46
45
|
'pyxis-npm' => {},
|
|
47
46
|
'starsky' => {},
|
|
48
47
|
'hutch' => {},
|
|
49
|
-
'maia' => {}
|
|
48
|
+
'maia' => {},
|
|
49
|
+
'legion' => {}
|
|
50
50
|
}
|
|
51
51
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
52
52
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
@@ -332,6 +332,10 @@ class Build
|
|
|
332
332
|
parameter_key: "RedisIp",
|
|
333
333
|
parameter_value: get_ec2_ip_address
|
|
334
334
|
},
|
|
335
|
+
{
|
|
336
|
+
parameter_key: "LegionIp",
|
|
337
|
+
parameter_value: get_ec2_ip_address
|
|
338
|
+
},
|
|
335
339
|
{
|
|
336
340
|
parameter_key: "AssangeElbHostname",
|
|
337
341
|
parameter_value: get_alb_host(stack_name_alb)
|
|
@@ -419,6 +423,46 @@ class Build
|
|
|
419
423
|
end
|
|
420
424
|
end
|
|
421
425
|
|
|
426
|
+
def create_legion_stack()
|
|
427
|
+
return true
|
|
428
|
+
# wait_for_artifact('prima-artifacts-encrypted', "microservices/legion/#{@projects["legion"]['revision']}-qa.tar.gz")
|
|
429
|
+
# stack_name_legion = get_stack_name("legion")
|
|
430
|
+
# git_checkout_version('legion', @projects["legion"]['revision'])
|
|
431
|
+
# stack_body = File.read('projects/legion/deploy/task.yml')
|
|
432
|
+
# parameters = [
|
|
433
|
+
# {
|
|
434
|
+
# parameter_key: "Environment",
|
|
435
|
+
# parameter_value: "qa"
|
|
436
|
+
# },
|
|
437
|
+
# {
|
|
438
|
+
# parameter_key: "ReleaseVersion",
|
|
439
|
+
# parameter_value: @projects["legion"]['revision']
|
|
440
|
+
# },
|
|
441
|
+
# {
|
|
442
|
+
# parameter_key: "TaskDesiredCount",
|
|
443
|
+
# parameter_value: "1"
|
|
444
|
+
# },
|
|
445
|
+
# {
|
|
446
|
+
# parameter_key: "ECSClusterName",
|
|
447
|
+
# parameter_value: get_ecs_cluster_name
|
|
448
|
+
# },
|
|
449
|
+
# {
|
|
450
|
+
# parameter_key: "HostnamePattern",
|
|
451
|
+
# parameter_value: "legion-#{get_deploy_id}.qa.colaster.com"
|
|
452
|
+
# },
|
|
453
|
+
# {
|
|
454
|
+
# parameter_key: "HostnamePatternPriority",
|
|
455
|
+
# parameter_value: hostname_pattern_priority
|
|
456
|
+
# }
|
|
457
|
+
# ]
|
|
458
|
+
# if stack_exists?(stack_name_legion)
|
|
459
|
+
# cur_version = get_currently_deployed_version(stack_name_legion)
|
|
460
|
+
# update_stack(stack_name_legion, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["legion"]['revision'])
|
|
461
|
+
# else
|
|
462
|
+
# create_stack(stack_name_legion, stack_body, parameters, @tags, @cf_role)
|
|
463
|
+
# end
|
|
464
|
+
end
|
|
465
|
+
|
|
422
466
|
def create_urania_stack()
|
|
423
467
|
wait_for_artifact('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"]['revision']}-qa.tar.gz")
|
|
424
468
|
stack_name_urania = get_stack_name("urania")
|
|
@@ -708,38 +752,6 @@ class Build
|
|
|
708
752
|
end
|
|
709
753
|
end
|
|
710
754
|
|
|
711
|
-
# def create_rogoreport_stack()
|
|
712
|
-
# wait_for_artifact('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport-#{@projects["rogoreport"]['revision']}-qa.tar.gz")
|
|
713
|
-
#
|
|
714
|
-
# stack_name_rogoreport = get_stack_name("rogoreport")
|
|
715
|
-
# git_checkout_version('rogoreport', @projects["rogoreport"]['revision'])
|
|
716
|
-
# stack_body = IO.read('projects/rogoreport/deploy/task.yml')
|
|
717
|
-
# parameters = [
|
|
718
|
-
# {
|
|
719
|
-
# parameter_key: "Environment",
|
|
720
|
-
# parameter_value: "qa"
|
|
721
|
-
# },
|
|
722
|
-
# {
|
|
723
|
-
# parameter_key: "ReleaseVersion",
|
|
724
|
-
# parameter_value: "#{@projects["rogoreport"]['revision']}"
|
|
725
|
-
# },
|
|
726
|
-
# {
|
|
727
|
-
# parameter_key: "ReleaseName",
|
|
728
|
-
# parameter_value: "rogoreport"
|
|
729
|
-
# },
|
|
730
|
-
# {
|
|
731
|
-
# parameter_key: "ECSClusterName",
|
|
732
|
-
# parameter_value: get_ecs_cluster_name
|
|
733
|
-
# }
|
|
734
|
-
# ]
|
|
735
|
-
# if stack_exists?(stack_name_rogoreport)
|
|
736
|
-
# cur_version = get_currently_deployed_version(stack_name_rogoreport)
|
|
737
|
-
# update_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["rogoreport"]['revision'])
|
|
738
|
-
# else
|
|
739
|
-
# create_stack(stack_name_rogoreport, stack_body, parameters, @tags, @cf_role)
|
|
740
|
-
# end
|
|
741
|
-
# end
|
|
742
|
-
|
|
743
755
|
def create_assange_stack()
|
|
744
756
|
wait_for_artifact('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"]['revision']}-qa.tar.gz")
|
|
745
757
|
|
|
@@ -1425,7 +1437,7 @@ class Build
|
|
|
1425
1437
|
wait_for_stack_ready(get_stack_name("worker-ermes")) unless stack_ready?(get_stack_name("worker-ermes"))
|
|
1426
1438
|
wait_for_stack_ready(get_stack_name("ermes")) unless stack_ready?(get_stack_name("ermes"))
|
|
1427
1439
|
wait_for_stack_ready(get_stack_name("peano")) unless stack_ready?(get_stack_name("peano"))
|
|
1428
|
-
#
|
|
1440
|
+
#wait_for_stack_ready(get_stack_name("legion")) unless stack_ready?(get_stack_name("legion"))
|
|
1429
1441
|
wait_for_stack_ready(get_stack_name("borat")) unless stack_ready?(get_stack_name("borat"))
|
|
1430
1442
|
wait_for_stack_ready(get_stack_name("activia")) unless stack_ready?(get_stack_name("activia"))
|
|
1431
1443
|
wait_for_stack_ready(get_stack_name("maia")) unless stack_ready?(get_stack_name("maia"))
|
|
@@ -1441,7 +1453,7 @@ class Build
|
|
|
1441
1453
|
update_service_defaults(get_stack_name("hal9000"))
|
|
1442
1454
|
update_service_defaults(get_stack_name("fidaty"))
|
|
1443
1455
|
update_service_defaults(get_stack_name("peano"))
|
|
1444
|
-
|
|
1456
|
+
update_service_defaults(get_stack_name("legion"))
|
|
1445
1457
|
update_service_defaults(get_stack_name("assange"))
|
|
1446
1458
|
update_service_defaults(get_stack_name("borat"))
|
|
1447
1459
|
update_service_defaults(get_stack_name("activia"))
|
|
@@ -1472,8 +1484,9 @@ class Build
|
|
|
1472
1484
|
crash_hostname = get_route53_hostname("crash")
|
|
1473
1485
|
starsky_hostname = get_route53_hostname("starsky")
|
|
1474
1486
|
hutch_hostname = get_route53_hostname("hutch")
|
|
1487
|
+
legion_hostname = get_route53_hostname("legion")
|
|
1475
1488
|
|
|
1476
|
-
launch_mimo(get_deploy_id)
|
|
1489
|
+
#launch_mimo(get_deploy_id)
|
|
1477
1490
|
|
|
1478
1491
|
projects_text = "
|
|
1479
1492
|
> Prima url: https://#{prima_hostname}
|
|
@@ -1492,6 +1505,7 @@ class Build
|
|
|
1492
1505
|
> Rachele url: http://#{rachele_hostname}:10040
|
|
1493
1506
|
> Maia App url: https://#{maia_app_hostname}
|
|
1494
1507
|
> Maia Intermediari url: https://#{maia_intermediari_hostname}
|
|
1508
|
+
> Legion url: http://#{legion_hostname}:8051
|
|
1495
1509
|
> Crash url: https://#{crash_hostname}
|
|
1496
1510
|
> Starsky url: https://#{starsky_hostname}
|
|
1497
1511
|
> Hutch url: https://#{hutch_hostname}
|
|
@@ -1554,6 +1568,8 @@ class Build
|
|
|
1554
1568
|
host = "hutch-#{get_deploy_id}.qa.colaster.com"
|
|
1555
1569
|
when project.include?('maia-app')
|
|
1556
1570
|
host = "api-#{get_deploy_id}.qa.colaster.com"
|
|
1571
|
+
when project.include?('legion')
|
|
1572
|
+
host = "legion-#{get_deploy_id}.qa.colaster.com"
|
|
1557
1573
|
when project.include?('maia-intermediari')
|
|
1558
1574
|
host = "api-intermediari-#{get_deploy_id}.qa.colaster.com"
|
|
1559
1575
|
end
|
|
@@ -1615,6 +1631,8 @@ class Build
|
|
|
1615
1631
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1616
1632
|
when stack_name.include?('maia')
|
|
1617
1633
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1634
|
+
when stack_name.include?('legion')
|
|
1635
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1618
1636
|
end
|
|
1619
1637
|
resp = describe_stack_resource(stack_name, logical_resource_id)
|
|
1620
1638
|
resp = describe_load_balancers([resp.stack_resource_detail.physical_resource_id])
|
|
@@ -1649,8 +1667,6 @@ class Build
|
|
|
1649
1667
|
logical_resource_id = 'ECSServiceActiviaQA'
|
|
1650
1668
|
when stack_name.include?('peano')
|
|
1651
1669
|
logical_resource_id = 'ECSServicePeanoQA'
|
|
1652
|
-
# when stack_name.include?('rogoreport')
|
|
1653
|
-
# logical_resource_id = 'ECSServiceRogoreport'
|
|
1654
1670
|
when stack_name.include?('assange')
|
|
1655
1671
|
logical_resource_id = 'ECSServiceAssangeQA'
|
|
1656
1672
|
when stack_name.include?('borat')
|
|
@@ -1667,6 +1683,8 @@ class Build
|
|
|
1667
1683
|
logical_resource_id = 'ECSServiceHutch'
|
|
1668
1684
|
when stack_name.include?('maia')
|
|
1669
1685
|
logical_resource_id = 'ECSServiceMaia'
|
|
1686
|
+
when stack_name.include?('legion')
|
|
1687
|
+
logical_resource_id = 'ECSServiceLegionQA'
|
|
1670
1688
|
else
|
|
1671
1689
|
raise "Service name non gestito per lo stack #{stack_name}"
|
|
1672
1690
|
end
|
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])
|
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.27
|
|
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-05-
|
|
17
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk-autoscaling
|