prima-twig 0.31.2 → 0.31.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-deploy +1 -1
- data/bin/twig-feature +32 -3
- data/bin/twig-update-ami +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f2f1d4701292577b7af7d75c8385d4aa2d48796
|
4
|
+
data.tar.gz: 528720b5682c22370832f323d1d3d263a9a49854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3257328b695fc1e709cd6987f2a8ee9eee438577c72fc7160eb686118acec05dff6578230e6284d4d74a50f29ee5a44356b8bcee615568c64f91e6f6424b8a87
|
7
|
+
data.tar.gz: 0d2253c922affcc47a03e4934a3c8b85d0214e4a52f860d3716b69fe48c2a894221971f4eb9b3dd13f9158897cedc43d7b58fd6e11c33b03cd015fd91f71c94a
|
data/bin/twig-deploy
CHANGED
@@ -51,7 +51,7 @@ class Review
|
|
51
51
|
def initialize
|
52
52
|
@prima = Prima.new
|
53
53
|
output "Controllo se ci sono aggiornamenti da fare..."
|
54
|
-
|
54
|
+
exec "gem update prima-twig && twig deploy #{ARGV.join ' '}" unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?
|
55
55
|
@cf = Aws::CloudFormation::Client.new
|
56
56
|
@ecs = Aws::ECS::Client.new
|
57
57
|
@s3 = Aws::S3::Client.new
|
data/bin/twig-feature
CHANGED
@@ -610,7 +610,9 @@ class Release
|
|
610
610
|
|
611
611
|
stack_name_ermes = "ecs-task-ermes-qa-#{deploy_id}"
|
612
612
|
git_checkout_version('ermes', @projects["ermes"][:revision])
|
613
|
-
stack_body =
|
613
|
+
stack_body = YAML.load_file('projects/ermes/deploy/task.yml')
|
614
|
+
stack_body['Resources']['ECSServiceErmes']['Properties'].reject!{ |k| ['LoadBalancers', 'Role'].include?(k) }
|
615
|
+
stack_body = stack_body.to_yaml
|
614
616
|
parameters = [
|
615
617
|
{
|
616
618
|
parameter_key: "Environment",
|
@@ -620,9 +622,25 @@ class Release
|
|
620
622
|
parameter_key: "ReleaseVersion",
|
621
623
|
parameter_value: @projects["ermes"][:revision]
|
622
624
|
},
|
625
|
+
{
|
626
|
+
parameter_key: "TaskDesiredCount",
|
627
|
+
parameter_value: "1"
|
628
|
+
},
|
623
629
|
{
|
624
630
|
parameter_key: "ECSClusterName",
|
625
631
|
parameter_value: @ecs_cluster_name
|
632
|
+
},
|
633
|
+
{
|
634
|
+
parameter_key: "ALBShortName",
|
635
|
+
parameter_value: "ermes-qa-#{deploy_id}"[0..31]
|
636
|
+
},
|
637
|
+
{
|
638
|
+
parameter_key: "HostnamePattern",
|
639
|
+
parameter_value: "ermes-#{@dns_record_identifier}.qa.colaster.com"
|
640
|
+
},
|
641
|
+
{
|
642
|
+
parameter_key: "HostnamePatternPriority",
|
643
|
+
parameter_value: hostname_pattern_priority
|
626
644
|
}
|
627
645
|
]
|
628
646
|
if stack_exists?(stack_name_ermes)
|
@@ -1053,6 +1071,10 @@ class Release
|
|
1053
1071
|
parameter_key: "PeanoIp",
|
1054
1072
|
parameter_value: ec2_ip_address(asg_stack_name)
|
1055
1073
|
},
|
1074
|
+
{
|
1075
|
+
parameter_key: "ErmesIp",
|
1076
|
+
parameter_value: ec2_ip_address(asg_stack_name)
|
1077
|
+
},
|
1056
1078
|
{
|
1057
1079
|
parameter_key: "RedisIp",
|
1058
1080
|
parameter_value: ec2_ip_address(asg_stack_name)
|
@@ -1077,6 +1099,7 @@ class Release
|
|
1077
1099
|
urania_hostname = get_route53_hostname(stack_name_urania)
|
1078
1100
|
bburago_hostname = get_route53_hostname(stack_name_bburago)
|
1079
1101
|
hal9000_hostname = get_route53_hostname(stack_name_hal9000)
|
1102
|
+
ermes_hostname = get_route53_hostname(stack_name_ermes)
|
1080
1103
|
fidaty_hostname = get_route53_hostname(stack_name_fidaty)
|
1081
1104
|
peano_hostname = get_route53_hostname(stack_name_peano)
|
1082
1105
|
backoffice_hostname = get_route53_hostname(stack_name_backoffice)
|
@@ -1094,6 +1117,7 @@ class Release
|
|
1094
1117
|
> Backoffice (Borat) url: https://#{borat_hostname}
|
1095
1118
|
> Urania url: http://#{urania_hostname}:81
|
1096
1119
|
> Bburago url: http://#{bburago_hostname}:83
|
1120
|
+
> Ermes url: http://#{ermes_hostname}:10002
|
1097
1121
|
> Hal9000 url: http://#{hal9000_hostname}:10031
|
1098
1122
|
> Fidaty url: http://#{fidaty_hostname}:10021
|
1099
1123
|
> Peano url: http://#{peano_hostname}:10039
|
@@ -1129,6 +1153,8 @@ class Release
|
|
1129
1153
|
host = "backoffice-#{@dns_record_identifier}.qa.colaster.com"
|
1130
1154
|
when stack_name.include?('crash')
|
1131
1155
|
host = "crash-#{@dns_record_identifier}.qa.colaster.com"
|
1156
|
+
when stack_name.include?('ermes')
|
1157
|
+
host = "ermes-#{@dns_record_identifier}.qa.colaster.com"
|
1132
1158
|
end
|
1133
1159
|
host
|
1134
1160
|
end
|
@@ -1265,6 +1291,7 @@ class Release
|
|
1265
1291
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh ermes_web \
|
1266
1292
|
'-c' 'mix local.hex --force && mix hex.info && \
|
1267
1293
|
mix deps.get && mix compile && mix deps.compile && \
|
1294
|
+
mix phx.digest && \
|
1268
1295
|
rm -rf _build/qa/rel/ && \
|
1269
1296
|
mix release --env=qa'"
|
1270
1297
|
].each do |cmd|
|
@@ -1359,7 +1386,7 @@ class Release
|
|
1359
1386
|
"docker run -v $PWD:/code -w /code -e MIX_ENV=qa --entrypoint /bin/sh hal9000_web \
|
1360
1387
|
'-c' 'mix local.hex --force && mix hex.info && \
|
1361
1388
|
mix deps.get && mix compile && mix deps.compile && \
|
1362
|
-
mix
|
1389
|
+
mix phx.digest && \
|
1363
1390
|
rm -rf _build/qa/rel/ && \
|
1364
1391
|
mix release --env=qa'"
|
1365
1392
|
].each do |cmd|
|
@@ -1392,7 +1419,7 @@ class Release
|
|
1392
1419
|
sed -i \"s/peano-qa-host/#{peano_qa_host}/g\" config/qa.exs && \
|
1393
1420
|
mix local.hex --force && mix hex.info && \
|
1394
1421
|
mix deps.get && mix compile && mix deps.compile && \
|
1395
|
-
mix
|
1422
|
+
mix phx.digest && \
|
1396
1423
|
rm -rf _build/qa/rel/ && \
|
1397
1424
|
mix release --env=qa'"
|
1398
1425
|
].each do |cmd|
|
@@ -1777,6 +1804,8 @@ class Release
|
|
1777
1804
|
File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
|
1778
1805
|
when project == 'crash'
|
1779
1806
|
File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
|
1807
|
+
when project == 'ermes'
|
1808
|
+
File.readlines("deploy/deploy").grep(/HOSTNAME_PATTERN/).size > 0
|
1780
1809
|
end
|
1781
1810
|
end
|
1782
1811
|
|
data/bin/twig-update-ami
CHANGED
@@ -12,6 +12,8 @@ class TwigUpdateAmi
|
|
12
12
|
include Command
|
13
13
|
include PrimaAwsClient
|
14
14
|
def initialize
|
15
|
+
output 'Controllo se ci sono aggiornamenti da fare...'
|
16
|
+
exec "gem update prima-twig && twig update-ami #{ARGV.join ' '}" unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?
|
15
17
|
@s3 = Aws::S3::Client.new
|
16
18
|
@s3_bucket = 'prima-deploy'
|
17
19
|
@instances = JSON.parse File.read('../twig-binaries/cloudformation.json')
|
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.31.
|
4
|
+
version: 0.31.3
|
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: 2017-11-
|
16
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: aws-sdk
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.6.
|
217
|
+
rubygems_version: 2.6.12
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: The Prima twig toolbelt
|