Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
hideo-at-sapporo-chuork01-hideo-at-sapporo-chuo...
Search
niku
February 07, 2014
79
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
hideo-at-sapporo-chuork01-hideo-at-sapporo-chuork01.pdf
niku
February 07, 2014
More Decks by niku
See All by niku
Protocol Buffers implementation with using Elixir
niku
1
2.2k
JavaScript-Free Soft-Realtime Browsing
niku
0
1k
introduction-of-elixir-at-rubysapporo-28
niku
1
560
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Agile that works and the tools we love
rasmusluckow
331
22k
A designer walks into a library…
pauljervisheath
211
25k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
560
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
510
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
310
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Speed Design
sergeychernyshev
33
2.2k
Transcript
ひでお(仮)
こんにちは にくです コンサドーレ札幌が好きです
コンサドーレホーム開幕戦情 報 3/9(⽇)13:00@札幌ドーム�vs�モン テディオ⼭形
ひでおとは 「ひ」とり 「で」ぶ(Dev) 「お」ぷす(Ops)
ひとりとは ひとりです 開発してもひとり 運用してもひとり
DevOpsおさらい “Dev”elopment(開発) “Op”eration(運用) を繋いだ⾔葉です
DevOpsってなんなの 開発「(多少動かなくても)機 能をのせていきたい」 運用「(多少機能が少なくて も)ちゃんと動くようにした い」 開発と運用はあんまり相性がよく ないようにみえる
DevもOpsも向かう先は⼀緒 だった 開発「(プロダクトをよりよく するため)(多少動かなくて も)機能をのせていきたい」 運用「(プロダクトをよりよく するため)(多少機能が少なく ても)ちゃんと動くようにした い」
プロダクトをよりよくする プロダクト全体の最適化 全体を良くするにはお互いを理 解する
DevOpsは壮大なストーリー 大きすぎて今回はうまく話せな い
ひでお ひとりで開発と運用やるのでお 互いは理解できている プロダクトをよりよくするため 運用の圧縮 ⼈が増えたときのノウハウの共有 記憶や⼿順書からの脱却
ひでお(旅⽴ち編) CI環境作るためのツール VirtualBox Vagrant Packer Chef
ケース ソースコードをGithubに置ける ソースコードをGithubに置けな い
ソースコードをGithubに置 ける Github連携サービスを使おう Travis�CI Circle�CI サービスの⾯倒をみなくていい おすすめ
ソースコードをGithubに置 けない Jenkinsを使おう ⾯倒をみないといけない 運用の⼿間を減らすために運用 対象を増やすの?
既にJenkinsが使える おめでとう! 使い倒そう
サーバーあるけどJenkins⼊ ってない ��������������������������������������������������������������������������������������� ������������������������������������������������������������������������������������������������������� ��������������������� ������������������������������ https://wiki.jenkins-ci.org/ display/JENKINS/Installing +Jenkins#InstallingJenkins-Unix %2FLinuxInstallation
サーバーがない 仮想環境に作ろう 実際のサーバー用意するより作ったり 壊したりが簡単 必要なもの 自分のPC 仮想化ソフト インストールしたことある⼈に聞ける 環境か調べる根性
仮想化ソフト インストーラーでインストール できる VirtualBox https://www.virtualbox.org/ VMWare�Fusion(Mac)�/�VMWare� Player(Windows) https://my.vmware.com/jp/
仮想化環境を作ろう 仮想化ソフト=いらないPC�(ハ ードウェア) 中⾝(OS)をインストールする その後Jenkinsを⼊れる
仮想化環境でのCIできた 簡単にノウハウを配布したい 記憶や⼿順書からの脱却 もっともっと
Vagrant http://www.vagrantup.com/ Vagrantfileに設定を書く あらかじめ仮想化してある環境(Box) の取得 ↑の環境へ事前処理(Provision)を適 用 仮想環境の起動/終了を簡単なコ マンドから
Vagrantのインストール http://www.vagrantup.com/ downloads.html Windows/OSX/Debian/RHEL インストーラーで簡単にインス トールできる
Vagrantfile ����������������������������� ������������������������������������������������������ ������������������������� ���������������������������������������������������������������� �������������������������������������������������������������� ������������������������������������������������ ������������������������������������������������������������������������������������� ����������������������������������������������������������������������������������������������������� �������������������
������������������������������� ������� ���
帰ったらやってみよう ������������� ���������� ���������������������������������������������������������� ������������ �������������������������������������������������� ���������������� ��������������
Vagrantでノウハウの配布 できた けど 「誰か」があらかじめ作ってくれた Boxを使っている それエンタープライズでも同じこと⾔ えんの?
Vagrantの課題解消 Boxも自分で作れるようになり たい http://docs.vagrantup.com/ v2/boxes/base.html もっともっと
Packer http://www.packer.io/ Template(JSON)に設定を書く OSのインストールCD/DVDを取得 OSの自動インストール 環境に処理を適用
OSの自動インストール (Debian) Debian�=>�preseed.cfg http://www.debian.org/ releases/wheezy/mipsel/ apbs01.html.ja
OSの自動インストール(Red� Hat�Enterprise�Linux) RHEL�=>�kickstart https://access.redhat.com/ site/documentation/ja-JP/ Red̲Hat̲Enterprise̲Linux/6/ html/Installation̲Guide/ch- kickstart2.html
OSの自動インストール (Windows) Windows�=>� Autounattend.xml http:// technet.microsoft.com/ja-jp/ library/cc749415% 28v=ws.10%29.aspx
Packerのインストール http://www.packer.io/docs/ installation.html ファイルを1つダウンロードして パス通すだけ
Packerのテンプレート � ���������������� ����������������������������� ���������������������������������� ������������������������������������������������������������������������������������������������������������������������������������������������������� ������������������������������������������������������������������������������������������������������� ������������������������������ ������������������������������ ���������������������������
��������������������� �������������� ��������������� ����������������� ���������������������������������������������������������������������� �������������������������������� �������������� ���������������������� ������������������������������� ����������������������������������������� ����������������������������������������� ������������������ ����������������������������������������� ���������������������������������������� �������������������������������������� ���������������������������������������������� ��������������� ������ ����������������������������������������������� �������������������������������� ����� �������������������� �������������������� ���������������� ���������������� ���������������� ������������������ ����� ����� ����������������������� ��������������������� ���� �
Packerのテンプレート作る のつらそう 「Packerを使ってVagrantの Boxを作る⽅法を⼀つずつ説明 する」という良いコンテンツが ある [packer�vagrant]�で検索
帰ったらやってみよう ����������������������������������������������������������������� ���������������������������������� ���������������������������� 処理が終わったらDebianベースで Vagrantに取り込めるBoxができて いる
Vagrantでやってたこと あらかじめ仮想化してある環境 (Box)の取得 ↑の環境へ事前処理(Provision) を適用 Boxの取得はできた
サーバーへの処理をShellで やるとしんどいこと パッケージ化されていないもの やソースから最新版を⼊れてメ ンテすること 設定ファイルの内容を書くこと 何回も動かしても大丈夫なよう にすること 何回動かしても大丈夫にしておけば,
Chef(Chef�Solo) http://www.getchef.com/ サーバーが「こうあるべき」と いうのを書いておく 「こうじゃないところ」を「こ う」にしてくれる 「こう」になっているところは 変わらない
⼊門Chef�Soloを読もう 全部書いてある http://tatsu-zine.com/books/ chef-solo
帰ったらやってみよう ����������������������������������������������������������������������� ���������������������������������������� ���������������� ����������������������������������������������������������� ������������������������������������ ���������������� ������������������ �������������� ������������
������������� ��������������������������� ����������������������� ����������������������� ���������������������������������������������������������������������������������������������������� �������������������������������������������������������������������������������������������������������������������� ��������������������������� ����������������������� �����������������������
おれたちの活躍はこれからだ VirtualBox�仮想化ツール Vagrant�仮想環境をBoxと Provisionから構築するツール Packer�Boxを作るツール Chef�Provision にく先⽣の次回作にご期待くださ い