-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (188 loc) · 5.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
---
layout: default
sidebar: false
---
<header class="masthead">
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<div class="header-content">
<div class="header-content-inner">
<h1>UFO: ECS Deploy Tool</h1>
<h2>UFO provides convenient tooling to make it easier and more fun to work with ECS. UFO tries to bring a heroku-like experience to ECS.</h2>
<a href="{% link getting-started.md %}" class="btn btn-outline btn-xl">Learn More!</a>
</div>
</div>
</div>
<div class="col-sm-4">
<img src="/img/logos/ufo-site-header.png" class="homepage-logo" />
</div>
</div>
</div>
</header>
<section id="summary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>Summary</h2>
<hr class="star-light">
</div>
</div>
<div class="row">
<div class="col-lg-6 col-lg-offset-3">
<p>The main command is <code>ufo ship</code>. Here's what it does:</p>
<ol class="landing-summary">
<li>Build the Docker image and push it to repo</li>
<li>Build the ECS Task Definition and CloudFormation template</li>
<li>Deploy the ECS resources by launching a CloudFormation stack</li>
</ol>
</div>
</div>
</div>
</section>
<section id="about">
<div class="container">
<div class="row">
<div class="col-lg-6">
<h3>Commands</h3>
<div class="commands">
{% highlight sh %}
ufo ship # Deploy stack
ufo ps # Show processes
ufo logs # Prints logs
ufo exec # Exec into container
ufo destroy # Destroy stack
{% endhighlight %}
</div>
</div>
<div class="col-lg-6">
<h3>.ufo/resources/task_definitions/web.yml</h3>
<div class="commands">
{% highlight yaml %}
family: <%= @family %>
networkMode: bridge
containerDefinitions:
- name: <%= @name %>
image: <%= @image %>
cpu: <%= @cpu %>
memory: <%= @memory %>
memoryReservation: <%= @memory_reservation %>
portMappings:
- containerPort: <%= @container_port %>
protocol: tcp
command: <%= @command %>
essential: true
{% endhighlight %}
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<h3>.ufo/vars/dev.rb</h3>
<div class="commands">
{% highlight ruby %}
@family = family
@name = role # IE: web worker clock
@image = docker_image
@cpu = 128
@memory = 256
@memory_reservation = 256
@container_port = dockerfile_port # parsed from Dockerfile
@environment = env_file(".env")
{% endhighlight %}
</div>
</div>
<div class="col-lg-6">
<h3>ufo exec</h3>
<div class="commands">
{% highlight sh %}
$ ufo exec
Starting session with SessionId: ecs-execute-command-099f990f7044b76b4
root@dcec6f6c7fdc:/#
{% endhighlight %}
</div>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section class="download bg-primary text-center" id="download">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>About</h2>
<hr class="star-light">
</div>
</div>
<div class="row">
<div class="col-lg-6">
<p>UFO is a tool makes using AWS ECS easier. UFO allows you to write the AWS Task Definition in JSON or YAML format. It allows you to use the ERB templating language so you can use the same code to create different environments like dev and prod.</p>
</div>
<div class="col-lg-6">
<p>The UFO tool tries to provide a heroku-like experience. At the same time, it gives you much more control over the ECS set up.</p>
</div>
</div>
</div>
</section>
<section id="screenshot">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>ufo ship</h2>
<hr class="star-primary">
</div>
</div>
<div class='row'>
<div class='col-md-offset-1 col-md-10'>
{% highlight sh %}
$ ufo ship
Will deploy stack demo-web-dev
Building Docker Image
=> docker build -t 111111111111.dkr.ecr.us-west-2.amazonaws.com/demo:ufo-2022-03-02T20-32-33-12dc6e0 -f Dockerfile .
Docker Image built: 111111111111.dkr.ecr.us-west-2.amazonaws.com/demo:ufo-2022-03-02T20-32-33-12dc6e0
Pushing Docker Image
=> docker push 111111111111.dkr.ecr.us-west-2.amazonaws.com/demo:ufo-2022-03-02T20-32-33-12dc6e0
Task Definition built: .ufo/output/task_definition.json
Parameters built: .ufo/output/params.json
Template built: .ufo/output/template.yml
Creating stack demo-web-dev
Waiting for stack to complete
08:32:39PM CREATE_IN_PROGRESS AWS::CloudFormation::Stack demo-web-dev User Initiated
08:34:32PM CREATE_IN_PROGRESS AWS::ECS::Service EcsService
...
08:35:08PM CREATE_COMPLETE AWS::CloudFormation::Stack demo-web-dev
Stack success status: CREATE_COMPLETE
Time took: 2m 32s
Software shipped!
Stack: demo-web-dev
Service: demo-web-dev-EcsService-i2lBBDs31vOX
Tasks: Running: 1 Desired: 1 Min: 1 Max: 2
Application ELB: demo-we-Elb-1UV4OWTPWAN4H-1073820873.us-west-2.elb.amazonaws.com
+----------------------------------+------+-----------------+---------------+---------+
| Task | Name | Release | Started | Status |
+----------------------------------+------+-----------------+---------------+---------+
| 3924c30eb7bc4c8197bf107934a4b79b | web | demo-web-dev:39 | 1 minutes ago | RUNNING |
+----------------------------------+------+-----------------+---------------+---------+
$
{% endhighlight %}
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="success" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>Learn More</h2>
<hr class="star-primary">
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<div id="success"></div>
<a id="next" href="{% link _docs/learn.md %}" class="btn btn-primary btn-xl">Quick Start</a>
</div>
</div>
</div>
</section>