README.md in mikoshi-0.1.5 vs README.md in mikoshi-0.2.0

- old
+ new

@@ -1,7 +1,8 @@ # Mikoshi [![Build Status](https://travis-ci.org/unasuke/mikoshi.svg?branch=master)](https://travis-ci.org/unasuke/mikoshi) +[![codecov](https://codecov.io/gh/unasuke/mikoshi/branch/master/graph/badge.svg)](https://codecov.io/gh/unasuke/mikoshi) This gem is tool to deploy ECS task definition and service with described by yaml documents. ## Installation @@ -22,27 +23,36 @@ ## Usage First, describe task definition to yaml. ```yaml # task_definitions/ping2googledns.yml.erb -family: "ping2googledns" -network_mode: "bridge" -container_definitions: - - name: "ping" - image: "unasuke/ping2googledns:latest" - cpu: 128 - memory: 128 +task_definition: + family: "ping2googledns" + network_mode: "bridge" + container_definitions: + - name: "ping" + image: "unasuke/ping2googledns:latest" + cpu: 128 + memory: 128 +hooks: + after_register: + - echo registerd ``` ... and service too. ```yaml # services/ping2googledns.yml.erb -cluster: "default" -service: "ping2googledns" -task_definition: <%= "ping2googledns:#{ENV['TASK_REVISION']}" %> -desired_count: 1 +service: + cluster: "default" + service: "ping2googledns" + task_definition: <%= "ping2googledns:#{ENV['TASK_DEF_REVISION']}" %> + desired_count: 1 +hooks: + before_update: + - echo some shell command + - echo shell command another one ``` Then, invoke those commands. ```shell @@ -50,10 +60,10 @@ $ mikoshi update_task ping2googledns --region ap-northeast-1 Update task definition: ping2googledns Done update task definition: ping2googledns revision: 6 # update service -$ TASK_REVISION=3 mikoshi update_service ping2googledns +$ TASK_DEF_REVISION=3 mikoshi update_service ping2googledns Update service : ping2googledns Waiting for 10 sec... Update service success # update task_definition and service