ufo 3.5.6 → 3.5.7
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/CHANGELOG.md +4 -0
- data/README.md +2 -4
- data/docs/_reference/ufo-completion_script.md +1 -1
- data/lib/template/.ufo/settings.yml.tt +2 -2
- data/lib/ufo/cli.rb +1 -1
- data/lib/ufo/init.rb +17 -2
- data/lib/ufo/sequence.rb +2 -0
- data/lib/ufo/task.rb +2 -0
- data/lib/ufo/version.rb +1 -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: a92a1e685c66f63854b015ea62abb3be7f54c3af1b2cf68ca9505b414fe8978c
|
4
|
+
data.tar.gz: 125983ffbc6084d126f05a684763b1ceeab38730eb2ea8cb778e662dbe9db7b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912de3bf9af0666505868a5d7d3f12b42834a1a6116cf5175e37f6d169d9e67a2a2a264f42aebee194680522f76737f286751412d693e4825a9c53b50ffd1e23
|
7
|
+
data.tar.gz: 14118ce031dccaf4488c4762b582f53ad7d6cf8c304ddff81b1f2305e3bce88f83ba4c55085306e1366c9cef5e21b3d982d2a9dad969269b0f01695aae456b98
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [3.5.7]
|
7
|
+
- display aws ecs run-task command
|
8
|
+
- fix ufo init in help menu
|
9
|
+
|
6
10
|
## [3.5.6]
|
7
11
|
- upgrade ufo with cli-template, link cli help to website reference help
|
8
12
|
|
data/README.md
CHANGED
@@ -2,15 +2,13 @@
|
|
2
2
|
<img src="http://ufoships.com/img/logos/ufo-logo.png" />
|
3
3
|
</div>
|
4
4
|
|
5
|
-
# Ufo -
|
5
|
+
# Ufo - ECS Deployment Tool
|
6
6
|
|
7
7
|
[](https://circleci.com/gh/tongueroo/ufo)
|
8
8
|
[](https://gitter.im/tongueroo/ufo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
9
9
|
[](https://boltops.com?utm_source=badge&utm_medium=badge&utm_campaign=ufo)
|
10
10
|
|
11
|
-
Ufo is
|
12
|
-
|
13
|
-
The main command is `ufo ship`. Here's summary of what it does:
|
11
|
+
Ufo is an tool that eases the building and deployment of docker images to [AWS ECS](https://aws.amazon.com/ecs/). The main command is `ufo ship`. Here's summary of what it does:
|
14
12
|
|
15
13
|
1. Builds a docker image.
|
16
14
|
2. Generates and registers the ECS template definition.
|
@@ -9,7 +9,7 @@ base:
|
|
9
9
|
# defaults when an new ECS service is created by ufo ship
|
10
10
|
|
11
11
|
development:
|
12
|
-
# cluster:
|
12
|
+
# cluster: development
|
13
13
|
# When you have AWS_PROFILE set to one of these values, ufo will switch to the desired
|
14
14
|
# environment. This prevents you from switching AWS_PROFILE, forgetting to
|
15
15
|
# also switch UFO_ENV, and accidentally deploying to production vs development.
|
@@ -18,6 +18,6 @@ development:
|
|
18
18
|
# - dev_profile2
|
19
19
|
|
20
20
|
production:
|
21
|
-
# cluster:
|
21
|
+
# cluster: production
|
22
22
|
# aws_profiles:
|
23
23
|
# - prod_profile
|
data/lib/ufo/cli.rb
CHANGED
@@ -20,7 +20,7 @@ module Ufo
|
|
20
20
|
Init.cli_options.each do |args|
|
21
21
|
option *args
|
22
22
|
end
|
23
|
-
register(Init, "init", "
|
23
|
+
register(Init, "init", "init", "Set up initial ufo files.")
|
24
24
|
|
25
25
|
# common options to deploy. ship, and ships command
|
26
26
|
ship_options = Proc.new do
|
data/lib/ufo/init.rb
CHANGED
@@ -65,11 +65,26 @@ module Ufo
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def upsert_gitignore
|
68
|
-
|
69
|
-
append_to_file ".gitignore", <<-EOL
|
68
|
+
text =<<-EOL
|
70
69
|
.ufo/output
|
71
70
|
.ufo/data
|
72
71
|
EOL
|
72
|
+
if File.exist?(".gitignore")
|
73
|
+
append_to_file ".gitignore", text
|
74
|
+
else
|
75
|
+
create_file ".gitignore", text
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def upsert_dockerignore
|
80
|
+
text =<<-EOL
|
81
|
+
.ufo
|
82
|
+
EOL
|
83
|
+
if File.exist?(".dockerignore")
|
84
|
+
append_to_file ".dockerignore", text
|
85
|
+
else
|
86
|
+
create_file ".dockerignore", text
|
87
|
+
end
|
73
88
|
end
|
74
89
|
|
75
90
|
def user_message
|
data/lib/ufo/sequence.rb
CHANGED
@@ -21,6 +21,8 @@ module Ufo
|
|
21
21
|
|
22
22
|
return unless @options[:launch_type] == "fargate"
|
23
23
|
# execution role arn required for fargate
|
24
|
+
puts "For fargate ECS tasks an ECS Task Execution IAM Role is required. "
|
25
|
+
puts "More details here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html"
|
24
26
|
print "Please provide a execution role arn role for the ecs task: "
|
25
27
|
@execution_role_arn = $stdin.gets.strip
|
26
28
|
end
|
data/lib/ufo/task.rb
CHANGED
@@ -44,6 +44,8 @@ module Ufo
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def run_task(options)
|
47
|
+
puts "Equivalent aws cli command:"
|
48
|
+
puts " aws ecs run-task --cluster #{@cluster} --task-definition #{options[:task_definition]}".colorize(:green)
|
47
49
|
ecs.run_task(options)
|
48
50
|
rescue Aws::ECS::Errors::ClientException => e
|
49
51
|
if e.message =~ /ECS was unable to assume the role/
|
data/lib/ufo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ufo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-cloudwatchlogs
|