Using CloudWatch Logs with Container Instances - Amazon EC2 Container Service を読んだ際のメモである。
Amazon ECS-optimized AMI前提の手順である。
以下のPolicyをecsInstanceRoleにアタッチする。
options = options.inject({}) { |accu, (key, value)| accu[key.to_sym] = value; accu } |
class StringEditor | |
def concat_header(file) | |
open(file, 'r+') do |f| | |
f.puts "header\n#{open(file).read}" | |
end | |
end | |
def split | |
system "split -a 1 -l 1 hoge.txt hogehoge_" |
{ | |
"Seti_ClosedFolder_same": true, | |
"Seti_SB_bright": true, | |
"Seti_SB_med": true, | |
"Seti_no_bar_undertabs": true, | |
"Seti_sb_small_padding": true, | |
"Seti_sb_tree_small": true, | |
"Seti_tabs_small": true, | |
"auto_indent": true, | |
"color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme", |
git log e015e8e..master --merges --ancestry-path --reverse --oneline | head -n1 | awk '{print substr($5, 2)}' |
if ENV['CIRCLE_ARTIFACTS'] | |
require 'simplecov' | |
dir = File.join('..', '..', '..', ENV['CIRCLE_ARTIFACTS'], 'coverage') | |
SimpleCov.coverage_dir(dir) | |
end |
[user] | |
name = yukiyan | |
email = [email protected] | |
signingkey = XXXXXX |
cp ~/Library/Preferences/org.pqrs.Karabiner.plist ~/Dropbox/Apps/karabiner | |
cp ~/Library/Application\ Support/Karabiner/private.xml ~/Dropbox/Apps/karabiner | |
ln -sf ~/Dropbox/Apps/karabiner/org.pqrs.Karabiner.plist ~/Library/Preferences/org.pqrs.Karabiner.plist | |
ln -sf ~/Dropbox/Apps/karabiner/private.xml ~/Library/Application\ Support/Karabiner/private.xml |
FROM fluent/fluentd:v0.12.26-onbuild | |
USER root | |
RUN apk --update add build-base ruby-dev | |
USER fluent | |
RUN gem install \ | |
fluent-plugin-bigquery \ | |
fluent-plugin-typecast \ | |
fluent-plugin-parser &&\ | |
fluent-gem install bigdecimal |
Using CloudWatch Logs with Container Instances - Amazon EC2 Container Service を読んだ際のメモである。
Amazon ECS-optimized AMI前提の手順である。
以下のPolicyをecsInstanceRoleにアタッチする。