Last active
July 31, 2017 13:36
-
-
Save kei-q/1992145204e6e8b4142914432884e1f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "capistrano/setup" | |
require "capistrano/deploy" | |
require "capistrano/scm/git" | |
install_plugin Capistrano::SCM::Git | |
require 'ecs_deploy/capistrano' | |
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lock "3.9.0" | |
set :application, "my_app_name" | |
set :repo_url, "[email protected]:me/my_repo.git" | |
set :ecs_region, %w(ap-northeast-1) | |
set :ecs_tasks, [ | |
{ | |
name: "ecs-schedule-task-sample", | |
container_definitions: [ | |
{ | |
name: "sample", | |
image: 'hellow-world', | |
cpu: 128, | |
memory: 128, | |
essential: true, | |
}, | |
], | |
}, | |
] | |
set :ecs_scheduled_tasks, [ | |
{ | |
cluster: "ecs-schedule-tasks", | |
rule_name: "scheduled-task-test", | |
schedule_expression: "cron(0/5 * * * ? *)", | |
task_definition_name: "ecs-schedule-task-sample", | |
role_arn: "arn:aws:iam::xxxxxxxxxxxxx:role/ecsEventsRole", | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem 'capistrano' | |
gem "ecs_deploy", github: "reproio/ecs_deploy", branch: 'support-scheduled-task' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/reproio/ecs_deploy.git | |
revision: e5c9ce2324f4623d3db2e69400e1f7ef1da8fea3 | |
branch: support-scheduled-task | |
specs: | |
ecs_deploy (0.2.0) | |
aws-sdk (~> 2.9) | |
paint | |
terminal-table | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
airbrussh (1.3.0) | |
sshkit (>= 1.6.1, != 1.7.0) | |
aws-sdk (2.10.19) | |
aws-sdk-resources (= 2.10.19) | |
aws-sdk-core (2.10.19) | |
aws-sigv4 (~> 1.0) | |
jmespath (~> 1.0) | |
aws-sdk-resources (2.10.19) | |
aws-sdk-core (= 2.10.19) | |
aws-sigv4 (1.0.1) | |
capistrano (3.9.0) | |
airbrussh (>= 1.0.0) | |
i18n | |
rake (>= 10.0.0) | |
sshkit (>= 1.9.0) | |
i18n (0.8.6) | |
jmespath (1.3.1) | |
net-scp (1.2.1) | |
net-ssh (>= 2.6.5) | |
net-ssh (4.1.0) | |
paint (2.0.0) | |
rake (12.0.0) | |
sshkit (1.14.0) | |
net-scp (>= 1.1.2) | |
net-ssh (>= 2.8.0) | |
terminal-table (1.8.0) | |
unicode-display_width (~> 1.1, >= 1.1.1) | |
unicode-display_width (1.3.0) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
capistrano | |
ecs_deploy! | |
BUNDLED WITH | |
1.15.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment