prima-twig 0.39.34 → 0.40.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 +76 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72ba4255da8cd57523f44769fd9f175d43d9c422
|
|
4
|
+
data.tar.gz: 76b76b9f5f6a93f920f7d7015d5a63514aa95d79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc3fd82c929d0c454a4b415a2b0d79a8516b9a5d04e85108b960faecd662adb56d82ab84163e6b0d2d10c0d74a4a49ec2ea07d3bf904de94d499f5d9d4c1f575
|
|
7
|
+
data.tar.gz: 61ec513d38f1d355a7056731f56ae8d126e5176d275524db3bbf648b1a2bb49cb42b789b12b3dfdb8b724712e70640bd0f80126987ac5347212b55ac45c7230b
|
data/bin/twig-feature
CHANGED
|
@@ -47,7 +47,8 @@ class Release
|
|
|
47
47
|
'assange' => {},
|
|
48
48
|
'borat' => {},
|
|
49
49
|
'crash' => {},
|
|
50
|
-
'activia' => {}
|
|
50
|
+
'activia' => {},
|
|
51
|
+
'skynet' => {}
|
|
51
52
|
}
|
|
52
53
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
53
54
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
@@ -985,6 +986,7 @@ class Release
|
|
|
985
986
|
create_assange_artifact(@projects["assange"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/assange/#{@projects["assange"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
986
987
|
create_borat_artifact(@projects["borat"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/borat/#{@projects["borat"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
987
988
|
create_activia_artifact(@projects["activia"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
989
|
+
create_skynet_artifact(@projects["skynet"][:revision], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
988
990
|
|
|
989
991
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db)
|
|
990
992
|
import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-route53-qa-#{deploy_id}")
|
|
@@ -1037,6 +1039,10 @@ class Release
|
|
|
1037
1039
|
parameter_key: "ActiviaIp",
|
|
1038
1040
|
parameter_value: ec2_ip_address(asg_stack_name)
|
|
1039
1041
|
},
|
|
1042
|
+
{
|
|
1043
|
+
parameter_key: "SkynetIp",
|
|
1044
|
+
parameter_value: ec2_ip_address(asg_stack_name)
|
|
1045
|
+
},
|
|
1040
1046
|
{
|
|
1041
1047
|
parameter_key: "RedisIp",
|
|
1042
1048
|
parameter_value: ec2_ip_address(asg_stack_name)
|
|
@@ -1058,6 +1064,42 @@ class Release
|
|
|
1058
1064
|
create_stack(stack_name_route53, stack_body, parameters, tags, @cf_role) unless stack_exists?(stack_name_route53)
|
|
1059
1065
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
|
1060
1066
|
|
|
1067
|
+
stack_name_skynet = "ecs-task-skynet-qa-#{deploy_id}"
|
|
1068
|
+
git_checkout_version('skynet', @projects["skynet"][:revision])
|
|
1069
|
+
stack_body = File.read('projects/skynet/deploy/task.yml')
|
|
1070
|
+
parameters = [
|
|
1071
|
+
{
|
|
1072
|
+
parameter_key: "Environment",
|
|
1073
|
+
parameter_value: "qa"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
parameter_key: "ReleaseVersion",
|
|
1077
|
+
parameter_value: @projects["skynet"][:revision]
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
parameter_key: "TaskDesiredCount",
|
|
1081
|
+
parameter_value: "1"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
parameter_key: "ECSClusterName",
|
|
1085
|
+
parameter_value: @ecs_cluster_name
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
parameter_key: "HostnamePattern",
|
|
1089
|
+
parameter_value: "skynet-#{@dns_record_identifier}.qa.colaster.com"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
parameter_key: "HostnamePatternPriority",
|
|
1093
|
+
parameter_value: hostname_pattern_priority
|
|
1094
|
+
}
|
|
1095
|
+
]
|
|
1096
|
+
if stack_exists?(stack_name_skynet)
|
|
1097
|
+
cur_version = get_currently_deployed_version(stack_name_skynet)
|
|
1098
|
+
update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"][:revision])
|
|
1099
|
+
else
|
|
1100
|
+
create_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role)
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1061
1103
|
stack_name_urania = "ecs-task-urania-qa-#{deploy_id}"
|
|
1062
1104
|
git_checkout_version('urania', @projects["urania"][:revision])
|
|
1063
1105
|
stack_body = File.read('projects/urania/deploy/task.yml')
|
|
@@ -1517,6 +1559,7 @@ class Release
|
|
|
1517
1559
|
end
|
|
1518
1560
|
|
|
1519
1561
|
# Waiting for prima healtcheck dependencies
|
|
1562
|
+
wait_for_stack_ready(stack_name_skynet) unless stack_ready?(stack_name_skynet)
|
|
1520
1563
|
wait_for_stack_ready(stack_name_urania) unless stack_ready?(stack_name_urania)
|
|
1521
1564
|
wait_for_stack_ready(stack_name_bburago) unless stack_ready?(stack_name_bburago)
|
|
1522
1565
|
wait_for_stack_ready(stack_name_hal9000) unless stack_ready?(stack_name_hal9000)
|
|
@@ -1623,19 +1666,21 @@ class Release
|
|
|
1623
1666
|
update_service_defaults(stack_name_assange)
|
|
1624
1667
|
update_service_defaults(stack_name_borat)
|
|
1625
1668
|
update_service_defaults(stack_name_activia)
|
|
1669
|
+
update_service_defaults(stack_name_skynet)
|
|
1626
1670
|
update_service_defaults(stack_name_crash) unless !deploy_crash?
|
|
1627
1671
|
|
|
1628
|
-
|
|
1629
|
-
|
|
1672
|
+
activia_hostname = get_route53_hostname(stack_name_activia)
|
|
1673
|
+
assange_hostname = get_route53_hostname(stack_name_assange)
|
|
1674
|
+
backoffice_hostname = get_route53_hostname(stack_name_backoffice)
|
|
1630
1675
|
bburago_hostname = get_route53_hostname(stack_name_bburago)
|
|
1631
|
-
|
|
1676
|
+
borat_hostname = get_route53_hostname(stack_name_borat)
|
|
1632
1677
|
ermes_hostname = get_route53_hostname(stack_name_ermes)
|
|
1633
1678
|
fidaty_hostname = get_route53_hostname(stack_name_fidaty)
|
|
1679
|
+
hal9000_hostname = get_route53_hostname(stack_name_hal9000)
|
|
1680
|
+
prima_hostname = get_route53_hostname(stack_name_web)
|
|
1634
1681
|
peano_hostname = get_route53_hostname(stack_name_peano)
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
borat_hostname = get_route53_hostname(stack_name_borat)
|
|
1638
|
-
activia_hostname = get_route53_hostname(stack_name_activia)
|
|
1682
|
+
skynet_hostname = get_route53_hostname(stack_name_skynet)
|
|
1683
|
+
urania_hostname = get_route53_hostname(stack_name_urania)
|
|
1639
1684
|
deploy_crash? && crash_hostname = get_route53_hostname(stack_name_crash)
|
|
1640
1685
|
|
|
1641
1686
|
launch_marley ec2_ip_address(asg_stack_name), prima_hostname, borat_hostname
|
|
@@ -1654,6 +1699,7 @@ class Release
|
|
|
1654
1699
|
> Peano url: http://#{peano_hostname}:10039
|
|
1655
1700
|
> Assange url: https://#{assange_hostname}
|
|
1656
1701
|
> Activia url: http://#{activia_hostname}:10041
|
|
1702
|
+
> Skynet url: http://#{skynet_hostname}:8050
|
|
1657
1703
|
> Backoffice (legacy) url: https://#{backoffice_hostname}"
|
|
1658
1704
|
projects_text.concat "
|
|
1659
1705
|
> Crash url: https://#{crash_hostname}" if deploy_crash?
|
|
@@ -1696,6 +1742,8 @@ class Release
|
|
|
1696
1742
|
host = "ermes-#{@dns_record_identifier}.qa.colaster.com"
|
|
1697
1743
|
when stack_name.include?('activia')
|
|
1698
1744
|
host = "activia-#{@dns_record_identifier}.qa.colaster.com"
|
|
1745
|
+
when stack_name.include?('skynet')
|
|
1746
|
+
host = "skynet-#{@dns_record_identifier}.qa.colaster.com"
|
|
1699
1747
|
end
|
|
1700
1748
|
host
|
|
1701
1749
|
end
|
|
@@ -1730,6 +1778,8 @@ class Release
|
|
|
1730
1778
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1731
1779
|
when stack_name.include?('activia')
|
|
1732
1780
|
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1781
|
+
when stack_name.include?('skynet')
|
|
1782
|
+
logical_resource_id = 'EcsApplicationLoadBalancerInternal'
|
|
1733
1783
|
when stack_name.include?('alb-http-public')
|
|
1734
1784
|
logical_resource_id = 'EcsApplicationLoadBalancerPublic'
|
|
1735
1785
|
when stack_name.include?('alb-ws-public')
|
|
@@ -1771,6 +1821,8 @@ class Release
|
|
|
1771
1821
|
logical_resource_id = 'ECSServiceHal9000QA'
|
|
1772
1822
|
when stack_name.include?('fidaty')
|
|
1773
1823
|
logical_resource_id = 'ECSServiceFidatyQA'
|
|
1824
|
+
when stack_name.include?('skynet')
|
|
1825
|
+
logical_resource_id = 'ECSServiceSkynetQA'
|
|
1774
1826
|
when stack_name.include?('activia')
|
|
1775
1827
|
logical_resource_id = 'ECSServiceActiviaQA'
|
|
1776
1828
|
when stack_name.include?('peano')
|
|
@@ -2469,6 +2521,22 @@ class Release
|
|
|
2469
2521
|
Dir.chdir '../../'
|
|
2470
2522
|
end
|
|
2471
2523
|
|
|
2524
|
+
def create_skynet_artifact(revision, deploy_id)
|
|
2525
|
+
output "Preparo l'artifact skynet\n".yellow
|
|
2526
|
+
|
|
2527
|
+
git_checkout_version('skynet', revision)
|
|
2528
|
+
|
|
2529
|
+
Dir.chdir 'projects/skynet'
|
|
2530
|
+
|
|
2531
|
+
version = `git rev-parse HEAD`
|
|
2532
|
+
|
|
2533
|
+
artifact_path = "/tmp/skynet-#{revision}-qa.tar.gz"
|
|
2534
|
+
|
|
2535
|
+
exec_step "tar cfz #{artifact_path} config core pickles web tests application_log configuration.py wsgi.py requirements.txt gunicorn*"
|
|
2536
|
+
|
|
2537
|
+
upload_artifact(artifact_path, "skynet/#{revision}-#{deploy_id}.tar.gz")
|
|
2538
|
+
end
|
|
2539
|
+
|
|
2472
2540
|
def create_backoffice_artifact(revision, deploy_id, asg_stack_name)
|
|
2473
2541
|
output "Preparo l'artifact backoffice .zip\n".yellow
|
|
2474
2542
|
|
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.40.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2018-
|
|
16
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: aws-sdk
|