『ご注文は监视自动化ですか?』
Serf と Consul を使って運用を楽しくする話
Serf とか Consul とか聞くけど、イマイチわからん!という疑問はありませんか。
どのような働きをするのかや、使いどころを、皆さんと共有したいなと思っています。
1. はじめに
2. 基本編
? Serf
? Consul
? envconsul
3. 実践編
? API 連携
4. まとめ
July Tech Festa 2014
June 22, 2014, @ AITT Shinagawa, Tokyo, Japan
#techfesta #jtf2014
『ご注文は监视自动化ですか?』
Serf と Consul を使って運用を楽しくする話
Serf とか Consul とか聞くけど、イマイチわからん!という疑問はありませんか。
どのような働きをするのかや、使いどころを、皆さんと共有したいなと思っています。
1. はじめに
2. 基本編
? Serf
? Consul
? envconsul
3. 実践編
? API 連携
4. まとめ
July Tech Festa 2014
June 22, 2014, @ AITT Shinagawa, Tokyo, Japan
#techfesta #jtf2014
1. Gemoire is a tool that allows publishing documentation for Ruby gems by simply inputting the gem's git URL. It clones the gem repository, generates documentation using YARD, and makes it browsable.
2. It uses webhooks to trigger documentation regeneration and publishing whenever code is pushed to the git repository.
3. The documentation is automatically generated and made available through a simple web interface without any other configuration needed.
The document discusses using the GitHub ecosystem for hobby development. It describes Gemoire, a web application that allows browsing documentation for gems hosted on GitHub. Key features of Gemoire include continuous integration using Travis CI, automated testing for pull requests, and a "Deploy to Heroku" button to automatically deploy gems to Heroku. The talk encourages using public repositories and GitHub features to collaborate on open source projects.
IoT Devices Compliant with JC-STAR Using Linux as a Container OSTomohiro Saneyoshi
?
Security requirements for IoT devices are becoming more defined, as seen with the EU Cyber Resilience Act and Japan’s JC-STAR.
It's common for IoT devices to run Linux as their operating system. However, adopting general-purpose Linux distributions like Ubuntu or Debian, or Yocto-based Linux, presents certain difficulties. This article outlines those difficulties.
It also, it highlights the security benefits of using a Linux-based container OS and explains how to adopt it with JC-STAR, using the "Armadillo Base OS" as an example.
Feb.25.2025@JAWS-UG IoT
12. Copyright Drecom Co., Ltd. All Rights Reserved.
http://www.slideshare.net/t_wada/the-spirit-of-tdd/27
テスト駆動インフラでもTDDの黄金の回転
13. Copyright Drecom Co., Ltd. All Rights Reserved.
● 新しいサーバを作ると自分のhomeディレクトリがないので手
軽に作りたい
【例】自分のhomeディレクトリを作る
14. Copyright Drecom Co., Ltd. All Rights Reserved.
describe file("/home/sueyoshi_go") do
it { should be_directory }
it { should be_mode 700 }
it { should be_owned_by "sueyoshi_go" }
it { should be_grouped_into "drecom" }
end
TARGET_HOST=xxx.xxx.xxx.xxx rspec spec/myhome_spec.rb
Serverspecのテストコード(myhome_spec.rb)
15. Copyright Drecom Co., Ltd. All Rights Reserved.
Serverspecのテストコード(myhome_spec.rb)
/home/sueyoshi_go が
ディレクトリで
パーミッション700で
ownerがsueyoshi_go で
drecom groupに所属していること
describe file("/home/sueyoshi_go") do
it { should be_directory }
it { should be_mode 700 }
it { should be_owned_by "sueyoshi_go" }
it { should be_grouped_into "drecom" }
end
TARGET_HOST=xxx.xxx.xxx.xxx rspec spec/myhome_spec.rb
16. Copyright Drecom Co., Ltd. All Rights Reserved.
Serverspecのテストコード(myhome_spec.rb)
/home/sueyoshi_go が
ディレクトリで
パーミッション700で
ownerがsueyoshi_go で
drecom groupに所属していること
describe file("/home/sueyoshi_go") do
it { should be_directory }
it { should be_mode 700 }
it { should be_owned_by "sueyoshi_go" }
it { should be_grouped_into "drecom" }
end
TARGET_HOST=xxx.xxx.xxx.xxx rspec spec/myhome_spec.rb
それっぽく読める!
17. Copyright Drecom Co., Ltd. All Rights Reserved.
directory "/home/sueyoshi_go" do
mode "700"
owner "sueyoshi_go"
group "drecom"
not_if "ls /home/sueyoshi_go"
end
itamae ssh -h xxx.xxx.xxx.xxx -p 10022 recipes/myhome.rb
itamaeのレシピ (myhome.rb)
18. Copyright Drecom Co., Ltd. All Rights Reserved.
itamaeのレシピ (myhome.rb)
ディレクトリが存在していなければ
/home/sueyoshi_go を作って
パーミッション700で
ownerがsueyoshi_goで
groupをdrecomにすること
directory "/home/sueyoshi_go" do
mode "700"
owner "sueyoshi_go"
group "drecom"
not_if "ls /home/sueyoshi_go"
end
itamae ssh -h xxx.xxx.xxx.xxx -p 10022 recipes/myhome.rb
19. Copyright Drecom Co., Ltd. All Rights Reserved.
itamaeのレシピ (myhome.rb)
ディレクトリが存在していなければ
/home/sueyoshi_go を作って
パーミッション700で
ownerがsueyoshi_goで
groupをdrecomにすること
directory "/home/sueyoshi_go" do
mode "700"
owner "sueyoshi_go"
group "drecom"
not_if "ls /home/sueyoshi_go"
end
itamae ssh -h xxx.xxx.xxx.xxx -p 10022 recipes/myhome.rb
それっぽく読める!
20. Copyright Drecom Co., Ltd. All Rights Reserved.
● 目視確認の自動化
○ インフラコードを書く、適用、確認のサイクルを素早く回
せる
● インフラコードがリファクタリングできる
○ バグってもテストコードで検知できる
テスト駆動インフラのメリット