Sha256: 9a65b6b0dbb819da49a4dfaa44bfb5f394788ab1bdb2e197feb0f4e01f4e08e0
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 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. # # env_vars - is a helper method that generates the proper environment Array of Hashes # common variables common = { image: helper.full_image_name, # includes the git sha tongueroo/hi:ufo-[sha]. cpu: 128, memory_reservation: 256, environment: env_file(".env.prod") } task_definition "<%= @app %>-web" do source "main" # will use ufo/templates/main.json.erb variables(common.dup.deep_merge( family: task_definition_name, name: "web", container_port: helper.dockerfile_port, command: ["bin/web"] )) end task_definition "<%= @app %>-worker" do source "main" # will use ufo/templates/main.json.erb variables(common.dup.deep_merge( family: task_definition_name, name: "worker", command: ["bin/worker"] )) end task_definition "<%= @app %>-clock" do source "main" # will use ufo/templates/main.json.erb variables(common.dup.deep_merge( family: task_definition_name, name: "clock", command: ["bin/clock"] )) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ufo-0.0.6 | lib/starter_project/ufo/task_definitions.rb |