prima-twig 0.47.6 → 0.48.0
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-feature +102 -2
- 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: fb28ab0472123a59d64758799249527464c6e24fc22ad072140e9c816ad119a7
|
|
4
|
+
data.tar.gz: 7d4accccfd6133a4d95820c4f28aa50fcdf05cc331150de99aa6b073461bbaba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffd6e72e3028885cc574457339fe62db797955dc0ff9ff3dabdb4768b227992a94aa8fa0824f77f5e8dfd0169161ef067afb68164be0a8d5787d98913b922756
|
|
7
|
+
data.tar.gz: 186e5faa1867f512fe9adb0238705706e854a308bd538b754217832c11333a5b401f92e297669fbde32ee40272659ae2bcdf8ff082c35799e91755673df685d6
|
data/bin/twig-feature
CHANGED
|
@@ -52,6 +52,7 @@ class Release
|
|
|
52
52
|
'activia' => {},
|
|
53
53
|
'skynet' => {},
|
|
54
54
|
'roger' => {},
|
|
55
|
+
'rachele' => {},
|
|
55
56
|
'leftorium' => {}
|
|
56
57
|
}
|
|
57
58
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
@@ -697,7 +698,7 @@ class Release
|
|
|
697
698
|
hashable = ''
|
|
698
699
|
@projects.each_key do |project_key|
|
|
699
700
|
if @projects[project_key][:name]
|
|
700
|
-
hashable += @projects[project_key][:name]
|
|
701
|
+
hashable += @projects[project_key][:name] unless project_key == 'rachele'
|
|
701
702
|
end
|
|
702
703
|
end
|
|
703
704
|
hash = Digest::MD5.hexdigest(hashable)
|
|
@@ -941,6 +942,7 @@ class Release
|
|
|
941
942
|
create_ermes_artifact(@projects["ermes"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-qa.tar.gz")
|
|
942
943
|
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
|
943
944
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
|
945
|
+
create_rachele_artifact(@projects['rachele'][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['rachele'][:revision]}-qa.tar.gz")
|
|
944
946
|
create_fidaty_artifact(@projects["fidaty"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/fidaty/#{@projects["fidaty"][:revision]}-qa.tar.gz")
|
|
945
947
|
create_peano_artifact(@projects["peano"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/peano/#{@projects["peano"][:revision]}-qa.tar.gz")
|
|
946
948
|
create_rogoreport_artifact(@projects["rogoreport"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/rogoreport/rogoreport_qa-#{@projects["rogoreport"][:revision]}-qa.tar.gz")
|
|
@@ -1008,6 +1010,10 @@ class Release
|
|
|
1008
1010
|
parameter_key: "LeftoriumIp",
|
|
1009
1011
|
parameter_value: ec2_ip_address(asg_stack_name)
|
|
1010
1012
|
},
|
|
1013
|
+
{
|
|
1014
|
+
parameter_key: "RacheleIp",
|
|
1015
|
+
parameter_value: ec2_ip_address(asg_stack_name)
|
|
1016
|
+
},
|
|
1011
1017
|
{
|
|
1012
1018
|
parameter_key: "RedisIp",
|
|
1013
1019
|
parameter_value: ec2_ip_address(asg_stack_name)
|
|
@@ -1417,6 +1423,46 @@ class Release
|
|
|
1417
1423
|
create_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role)
|
|
1418
1424
|
end
|
|
1419
1425
|
|
|
1426
|
+
stack_name_rachele = "ecs-task-rachele-qa-#{deploy_id}"
|
|
1427
|
+
git_checkout_version('rachele', @projects["rachele"][:revision])
|
|
1428
|
+
stack_body = File.read('projects/rachele/deploy/task.yml')
|
|
1429
|
+
parameters = [
|
|
1430
|
+
{
|
|
1431
|
+
parameter_key: "Environment",
|
|
1432
|
+
parameter_value: "qa"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
parameter_key: "ReleaseVersion",
|
|
1436
|
+
parameter_value: "#{@projects["rachele"][:revision]}"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
parameter_key: "ECSClusterName",
|
|
1440
|
+
parameter_value: @ecs_cluster_name
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
parameter_key: "TaskDesiredCount",
|
|
1444
|
+
parameter_value: "1"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
parameter_key: "WebHost",
|
|
1448
|
+
parameter_value: "www-#{@dns_record_identifier}.qa.colaster.com"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
parameter_key: "HostnamePattern",
|
|
1452
|
+
parameter_value: "rachele-#{@dns_record_identifier}.qa.colaster.com"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
parameter_key: "HostnamePatternPriority",
|
|
1456
|
+
parameter_value: hostname_pattern_priority
|
|
1457
|
+
}
|
|
1458
|
+
]
|
|
1459
|
+
if stack_exists?(stack_name_rachele)
|
|
1460
|
+
cur_version = get_currently_deployed_version(stack_name_rachele)
|
|
1461
|
+
update_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rachele"][:revision])
|
|
1462
|
+
else
|
|
1463
|
+
create_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role)
|
|
1464
|
+
end
|
|
1465
|
+
|
|
1420
1466
|
stack_name_borat = "ecs-task-borat-qa-#{deploy_id}"
|
|
1421
1467
|
git_checkout_version('borat', @projects["borat"][:revision])
|
|
1422
1468
|
stack_body = IO.read('projects/borat/deploy/task.yml')
|
|
@@ -1587,6 +1633,7 @@ class Release
|
|
|
1587
1633
|
wait_for_stack_ready(stack_name_assange) unless stack_ready?(stack_name_assange)
|
|
1588
1634
|
wait_for_stack_ready(stack_name_fidaty) unless stack_ready?(stack_name_fidaty)
|
|
1589
1635
|
wait_for_stack_ready(stack_name_leftorium) unless stack_ready?(stack_name_leftorium)
|
|
1636
|
+
wait_for_stack_ready(stack_name_rachele) unless stack_ready?(stack_name_rachele)
|
|
1590
1637
|
|
|
1591
1638
|
stack_name_web = "ecs-task-web-qa-#{deploy_id}"
|
|
1592
1639
|
git_checkout_version('prima', @projects["prima"][:revision])
|
|
@@ -1752,6 +1799,7 @@ class Release
|
|
|
1752
1799
|
update_service_defaults(stack_name_activia)
|
|
1753
1800
|
update_service_defaults(stack_name_skynet)
|
|
1754
1801
|
update_service_defaults(stack_name_leftorium)
|
|
1802
|
+
update_service_defaults(stack_name_rachele)
|
|
1755
1803
|
update_service_defaults(stack_name_crash) unless !deploy_crash?
|
|
1756
1804
|
|
|
1757
1805
|
activia_hostname = get_route53_hostname(stack_name_activia)
|
|
@@ -1767,6 +1815,7 @@ class Release
|
|
|
1767
1815
|
urania_hostname = get_route53_hostname(stack_name_urania)
|
|
1768
1816
|
roger_hostname = get_route53_hostname(stack_name_roger)
|
|
1769
1817
|
leftorium_hostname = get_route53_hostname(stack_name_leftorium)
|
|
1818
|
+
rachele_hostname = get_route53_hostname(stack_name_rachele)
|
|
1770
1819
|
crash_hostname = get_route53_hostname(stack_name_crash) unless !deploy_crash?
|
|
1771
1820
|
|
|
1772
1821
|
# launch_marley ec2_ip_address(asg_stack_name), prima_hostname, borat_hostname
|
|
@@ -1784,7 +1833,8 @@ class Release
|
|
|
1784
1833
|
> Activia url: http://#{activia_hostname}:10041
|
|
1785
1834
|
> Skynet url: http://#{skynet_hostname}:8050
|
|
1786
1835
|
> Roger url: http://#{roger_hostname}:10051
|
|
1787
|
-
> Leftorium url: http://#{leftorium_hostname}:10061
|
|
1836
|
+
> Leftorium url: http://#{leftorium_hostname}:10061
|
|
1837
|
+
> Rachele url: http://#{rachele_hostname}:10040"
|
|
1788
1838
|
projects_text.concat "
|
|
1789
1839
|
> Crash url: https://#{crash_hostname}" if deploy_crash?
|
|
1790
1840
|
projects_text.concat "
|
|
@@ -1830,6 +1880,8 @@ class Release
|
|
|
1830
1880
|
host = "roger-#{@dns_record_identifier}.qa.colaster.com"
|
|
1831
1881
|
when stack_name.include?('leftorium')
|
|
1832
1882
|
host = "leftorium-#{@dns_record_identifier}.qa.colaster.com"
|
|
1883
|
+
when stack_name.include?('rachele')
|
|
1884
|
+
host = "rachele-#{@dns_record_identifier}.qa.colaster.com"
|
|
1833
1885
|
end
|
|
1834
1886
|
host
|
|
1835
1887
|
end
|
|
@@ -1882,6 +1934,8 @@ class Release
|
|
|
1882
1934
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1883
1935
|
when stack_name.include?('crash')
|
|
1884
1936
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1937
|
+
when stack_name.include?('rachele')
|
|
1938
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1885
1939
|
end
|
|
1886
1940
|
resp = @cf.describe_stack_resource({
|
|
1887
1941
|
stack_name: stack_name,
|
|
@@ -1927,6 +1981,8 @@ class Release
|
|
|
1927
1981
|
logical_resource_id = 'ECSServiceBorat'
|
|
1928
1982
|
when stack_name.include?('leftorium')
|
|
1929
1983
|
logical_resource_id = 'ECSServiceLeftoriumQA'
|
|
1984
|
+
when stack_name.include?('rachele')
|
|
1985
|
+
logical_resource_id = 'ECSServiceRacheleQA'
|
|
1930
1986
|
when stack_name.include?('crash')
|
|
1931
1987
|
logical_resource_id = 'ECSServiceCrash'
|
|
1932
1988
|
else
|
|
@@ -1990,6 +2046,50 @@ class Release
|
|
|
1990
2046
|
Dir.chdir '../../'
|
|
1991
2047
|
end
|
|
1992
2048
|
|
|
2049
|
+
def create_rachele_artifact(revision)
|
|
2050
|
+
output "Preparo l'artifact rachele .zip\n".yellow
|
|
2051
|
+
|
|
2052
|
+
git_checkout_version('rachele', revision)
|
|
2053
|
+
|
|
2054
|
+
Dir.chdir 'projects/rachele'
|
|
2055
|
+
|
|
2056
|
+
decrypt_secrets()
|
|
2057
|
+
|
|
2058
|
+
if @qainit
|
|
2059
|
+
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2060
|
+
exec_step 'prepare-docker-compose --directory rachele && cp docker-compose-qainit.yml docker-compose.yml'
|
|
2061
|
+
end
|
|
2062
|
+
|
|
2063
|
+
execute_command "docker-compose build web"
|
|
2064
|
+
|
|
2065
|
+
if @qainit
|
|
2066
|
+
[ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
|
|
2067
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2068
|
+
mix deps.get && mix compile && mix deps.compile && \
|
|
2069
|
+
rm -rf _build/qa/rel/ && \
|
|
2070
|
+
mix release --env=qa'"
|
|
2071
|
+
].each do |cmd|
|
|
2072
|
+
execute_command cmd
|
|
2073
|
+
end
|
|
2074
|
+
|
|
2075
|
+
cleanup_containers
|
|
2076
|
+
else
|
|
2077
|
+
[ "docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh rachele_web \
|
|
2078
|
+
'-c' 'mix local.hex --force && mix hex.info && \
|
|
2079
|
+
mix deps.get && mix compile && mix deps.compile && \
|
|
2080
|
+
rm -rf _build/qa/rel/ && \
|
|
2081
|
+
mix release --env=qa'"
|
|
2082
|
+
].each do |cmd|
|
|
2083
|
+
execute_command cmd
|
|
2084
|
+
end
|
|
2085
|
+
end
|
|
2086
|
+
|
|
2087
|
+
artifact_path = Dir.glob("_build/qa/rel/rachele/releases/*/rachele.tar.gz").first
|
|
2088
|
+
upload_artifact(artifact_path, "microservices/rachele/#{revision}-qa.tar.gz", "#{@s3_bucket}-encrypted")
|
|
2089
|
+
|
|
2090
|
+
Dir.chdir '../../'
|
|
2091
|
+
end
|
|
2092
|
+
|
|
1993
2093
|
def create_ermes_artifact(revision)
|
|
1994
2094
|
output "Preparo l'artifact ermes .zip\n".yellow
|
|
1995
2095
|
|
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: 0.
|
|
4
|
+
version: 0.48.0
|
|
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: 2019-06-
|
|
17
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk
|