Sha256: 1052def25c19c72ac344ef89c7f6d40251b3b6983bc9ff74482884a269dec552

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

# There will be some special variables that are automatically available in this file.
#
# Some of variables are from the Dockerfile and some are from other places.
#
# * helper.full_image_name - Docker image name with the tag when docker image is built by ufo. This is defined in ufo/settings.yml.  The helper.full_image_name includes the git sha tongueroo/hi:ufo-[sha].
# * helper.dockerfile_port - Expose port in the Dockerfile.  Only supports one exposed port, the first one that is encountered.
#
# helper.env_vars - is a helper method that generates the proper environment Array of Hashes
#
# More info: http://ufoships.com/docs/helpers/
#
task_definition "<%= @app %>-web" do
  source "main" # will use ufo/templates/main.json.erb
  variables(
    family: task_definition_name,
    name: "web",
    container_port: helper.dockerfile_port,
    # uncomment out to set the log group
    # awslogs_group: "<%= @app %>-web",
    # awslogs_stream_prefix: "<%= @app %>",
    command: ["bin/web"]
  )
end

task_definition "<%= @app %>-worker" do
  source "main" # will use ufo/templates/main.json.erb
  variables(
    family: task_definition_name,
    name: "worker",
    # uncomment out to set the log group
    # awslogs_group: "<%= @app %>-worker",
    # awslogs_stream_prefix: "<%= @app %>",
    command: ["bin/worker"]
  )
end

task_definition "<%= @app %>-clock" do
  source "main" # will use ufo/templates/main.json.erb
  variables(
    family: task_definition_name,
    name: "clock",
    # uncomment out to set the log group
    # awslogs_group: "<%= @app %>-clock",
    # awslogs_stream_prefix: "<%= @app %>",
    command: ["bin/clock"]
  )
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ufo-2.1.0 lib/starter_project/ufo/task_definitions.rb
ufo-2.0.3 lib/starter_project/ufo/task_definitions.rb