-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from civitaspo/develop
v0.0.7
- Loading branch information
Showing
21 changed files
with
374 additions
and
59 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1,aaa | ||
2,bbb | ||
3,ccc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1,aaa | ||
2,bbb | ||
3,ccc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
+ecs_task.embulk: | ||
_export: | ||
path_prefix: ./csv/ | ||
+dig: | ||
ecs_task.embulk>: | ||
in: | ||
type: file | ||
path_prefix: ${path_prefix} | ||
parser: | ||
charset: UTF-8 | ||
newline: CRLF | ||
type: csv | ||
delimiter: ',' | ||
quote: '"' | ||
escape: '"' | ||
null_string: 'NULL' | ||
skip_header_lines: 0 | ||
columns: | ||
- {name: id, type: long} | ||
- {name: comment, type: string} | ||
out: | ||
type: stdout | ||
image: civitaspo/embulk-awscli:latest | ||
|
||
+file: | ||
ecs_task.embulk>: template.yml | ||
image: civitaspo/embulk-awscli:latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
in: | ||
type: file | ||
path_prefix: ${path_prefix} | ||
parser: | ||
charset: UTF-8 | ||
newline: CRLF | ||
type: csv | ||
delimiter: ',' | ||
quote: '"' | ||
escape: '"' | ||
null_string: 'NULL' | ||
skip_header_lines: 0 | ||
columns: | ||
- {name: id, type: long} | ||
- {name: comment, type: string} | ||
out: | ||
type: stdout | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import yaml | ||
|
||
|
||
def echo(message): | ||
print(yaml.dump(message)) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
+ecs_task.py: | ||
+step0: | ||
ecs_task.py>: echo.echo | ||
pip_install: [PyYaml] | ||
image: civitaspo/python-awscli:latest | ||
_export: | ||
message: | ||
message: 'hello ecs_task.py' | ||
created_by: civitaspo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'awesome_print' | ||
|
||
def echo(message) | ||
ap message | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
+ecs_task.rb: | ||
+step0: | ||
ecs_task.rb>: echo | ||
require: echo | ||
gem_install: [awesome_print] | ||
image: civitaspo/ruby-awscli:latest | ||
_export: | ||
message: | ||
message: 'hello ecs_task.rb' | ||
created_by: civitaspo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
+ecs_task.run: | ||
+step1: | ||
ecs_task.run>: | ||
def: | ||
network_mode: host | ||
container_definitions: | ||
- name: step1 | ||
image: civitaspo/python-awscli:latest | ||
command: [echo, step1] | ||
essential: true | ||
memory: 500 | ||
cpu: 1 | ||
family: step1 | ||
count: 1 | ||
+step2: | ||
ecs_task.run>: | ||
def: | ||
network_mode: host | ||
container_definitions: | ||
- name: step2 | ||
image: civitaspo/python-awscli:latest | ||
command: [echo, step2] | ||
essential: true | ||
memory: 500 | ||
cpu: 1 | ||
family: step2 | ||
count: 1 | ||
+step3: | ||
ecs_task.run>: | ||
def: | ||
network_mode: host | ||
container_definitions: | ||
- name: step3 | ||
image: civitaspo/python-awscli:latest | ||
command: | ||
- sh | ||
- -c | ||
- echo '{"store_params":{"civi":"taspo"}}' | aws s3 cp - ${output}/${session_uuid}.json | ||
essential: true | ||
memory: 500 | ||
cpu: 1 | ||
task_role_arn: ${task_role_arn} | ||
family: step3 | ||
count: 1 | ||
result_s3_uri: ${output}/${session_uuid}.json | ||
|
||
+step4: | ||
echo>: ${civi} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
+ecs_task.sh: | ||
+step0: | ||
ecs_task.sh>: env | ||
image: civitaspo/digdag-awscli:latest | ||
_export: | ||
message: | ||
message: 'hello ecs_task.rb' | ||
created_by: civitaspo | ||
|
Oops, something went wrong.