Sha256: 5a6deefe0253e5dee63a5cd97f92f001bf2928bdb9b8fda68b9ea8663fb2760a

Contents?: true

Size: 1.96 KB

Versions: 24

Compression:

Stored size: 1.96 KB

Contents

 <!-- About 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

ufo docker build

ufo tasks build

ufo scale

ufo destroy
{% endhighlight %}
                    </div>
                </div>
                <div class="col-lg-6">
                    <h3>variables/base.rb</h3>
                    <div class="commands">
{% highlight ruby %}
@image = helper.full_image_name # includes the git sha tongueroo/hi:ufo-[sha].
@cpu = 128
@memory_reservation = 256
@environment = helper.env_vars(%Q{
  RAILS_ENV=production
  SITE=awesome
})
{% endhighlight %}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-6">
                    <h3>templates/main.json.erb</h3>
                    <div class="commands">
{% highlight json %}
{
    "family": "<%= @family %>",
    "containerDefinitions": [
        {
            "name": "<%= @name %>",
            "image": "<%= @image %>",
            <% if @cpu %>
            "cpu": <%= @cpu %>,
            <% end %>
            "command": <%= @command.to_json %>,
            <% if @environment %>
            "environment": <%= @environment.to_json %>,
            <% end %>
            "essential": true
        }
    ]
}
{% endhighlight %}
                    </div>
                </div>
                <div class="col-lg-6">
                    <h3>template_definitions.rb</h3>
                    <div class="commands">
{% highlight ruby %}
task_definition "example-web" do
  source "main"
  variables(
    family: task_definition_name,
    name: "web",
    awslogs_group: "ecs/example-web",
    awslogs_stream_prefix: "example",
    command: ["bin/web"]
  )
end
{% endhighlight %}
                    </div>
                </div>
            </div>
        </div>
    </section>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ufo-3.5.7 docs/_includes/commands.html
ufo-3.5.6 docs/_includes/commands.html
ufo-3.5.5 docs/_includes/commands.html
ufo-3.5.4 docs/_includes/commands.html
ufo-3.5.3 docs/_includes/commands.html
ufo-3.5.2 docs/_includes/commands.html
ufo-3.5.1 docs/_includes/commands.html
ufo-3.5.0 docs/_includes/commands.html
ufo-3.4.4 docs/_includes/commands.html
ufo-3.4.3 docs/_includes/commands.html
ufo-3.4.2 docs/_includes/commands.html
ufo-3.4.1 docs/_includes/commands.html
ufo-3.4.0 docs/_includes/commands.html
ufo-3.3.2 docs/_includes/commands.html
ufo-3.3.1 docs/_includes/commands.html
ufo-3.3.0 docs/_includes/commands.html
ufo-3.2.2 docs/_includes/commands.html
ufo-3.2.1 docs/_includes/commands.html
ufo-3.2.0 docs/_includes/commands.html
ufo-3.1.2 docs/_includes/commands.html