prima-twig 0.28.2 → 0.28.3
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 +20 -23
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f0b6580810390aa371f33e67938a26f01ff3828
|
|
4
|
+
data.tar.gz: f009cf6e6118eccb034dff9ae32e02dacacd517b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2cc718830bcb0362861e1f8433cffa18e3c13bd6694ed9e2df2d0cdd5021b8b8e22b9cdff83a12d210bdc34c3eb436822170042fb0007c312a3261c9712cac2
|
|
7
|
+
data.tar.gz: 55f5d3f73c8d3b45e0f231ade1b1ccfa7e764cb145646ac0f21f07df1a4842d02f7b420756790719cea51aaa6bf6d0a0a0dd06640102869bf0f34e323d5da48d
|
data/bin/twig-feature
CHANGED
|
@@ -19,6 +19,7 @@ class Release
|
|
|
19
19
|
@alb = Aws::ElasticLoadBalancingV2::Client.new
|
|
20
20
|
@ec2 = Aws::EC2::Client.new
|
|
21
21
|
@ecs = Aws::ECS::Client.new
|
|
22
|
+
@batch = Aws::Batch::Client.new
|
|
22
23
|
@s3 = Aws::S3::Client.new
|
|
23
24
|
@asg = Aws::AutoScaling::Client.new
|
|
24
25
|
@s3_bucket = 'prima-artifacts'
|
|
@@ -1943,32 +1944,28 @@ class Release
|
|
|
1943
1944
|
|
|
1944
1945
|
def launch_marley
|
|
1945
1946
|
resp = @cf.describe_stack_resource({
|
|
1946
|
-
stack_name: '
|
|
1947
|
-
logical_resource_id: '
|
|
1947
|
+
stack_name: 'batch-job-marley',
|
|
1948
|
+
logical_resource_id: 'JobDefinition'
|
|
1948
1949
|
})
|
|
1949
1950
|
|
|
1950
|
-
@
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
container_overrides:
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
{
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
]
|
|
1967
|
-
}
|
|
1968
|
-
]
|
|
1969
|
-
},
|
|
1970
|
-
count: 1
|
|
1951
|
+
@batch.submit_job({
|
|
1952
|
+
job_name: "marley-#{@dns_record_identifier}", # required
|
|
1953
|
+
job_queue: "marley", # required
|
|
1954
|
+
job_definition: resp.stack_resource_detail.physical_resource_id, # required
|
|
1955
|
+
container_overrides: {
|
|
1956
|
+
environment: [
|
|
1957
|
+
{
|
|
1958
|
+
name: 'PRIMA_URL',
|
|
1959
|
+
value: "https://#{get_route53_hostname("ecs-task-web-qa-notneeded")}/"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
name: 'PROJECTS_JSON',
|
|
1963
|
+
value: @projects.to_json
|
|
1964
|
+
}
|
|
1965
|
+
]
|
|
1966
|
+
}
|
|
1971
1967
|
})
|
|
1968
|
+
|
|
1972
1969
|
|
|
1973
1970
|
output "Marley lanciato con successo!\n".green
|
|
1974
1971
|
end
|