Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS Fargate + Code 兄弟で始める継続的デリバリー / Continuous ...
Search
ryo nakamaru
July 30, 2018
Programming
12
3.2k
AWS Fargate + Code 兄弟で始める継続的デリバリー / Continuous Delivery with AWS Fargate and Code brothers
JAWS-UG コンテナ支部 入門編 #5 の資料です
ryo nakamaru
July 30, 2018
Tweet
Share
More Decks by ryo nakamaru
See All by ryo nakamaru
AWSで楽をするサービスメッシュ入門/appmesh-trial
pottava
1
1.5k
reinforce-2019-recap-lt
pottava
2
4.1k
ScaleShift-jp-2019-summer
pottava
1
210
Firecracker とは何か/what is Firecracker
pottava
12
5.5k
ハイブリッド並列 on Kubernetes/hybrid-parallel-program-on-kubernetes
pottava
1
440
Singularity と NVIDIA GPU Cloud で作る ハイブリッド機械学習環境の構築 / Building a hybrid environment for Machine Learning with Singularity and NGC
pottava
3
1.4k
明日から始めるちょい足し λ / get-started-with-aws-lambda
pottava
4
2.5k
NGC と Singularity によるハイブリッド機械学習環境 / A hybrid environment for Machine Learning with NGC and Singularity
pottava
0
500
NGC × Singularity での機械学習環境/MachineLearning environment with NGC and Singularity
pottava
2
810
Other Decks in Programming
See All in Programming
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
190
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
360
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
140
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
910
React Nativeならぬ"Vue Native"が実現するかも?_新世代マルチプラットフォーム開発フレームワークのLynxとLynxのVue.js対応を追ってみよう_Vue Lynx
yut0naga1_fa
2
960
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
420
iOSでSVG画像を扱う
kishikawakatsumi
0
170
「ちょっと古いから」って避けてた技術書、今だからこそ読もう
mottyzzz
12
7.1k
理論と実務のギャップを超える
eycjur
0
180
CSC305 Lecture 10
javiergs
PRO
0
250
pnpm に provenance のダウングレード を検出する PR を出してみた
ryo_manba
1
160
SwiftDataを使って10万件のデータを読み書きする
akidon0000
0
240
Featured
See All Featured
The Language of Interfaces
destraynor
162
25k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Designing Experiences People Love
moore
142
24k
Producing Creativity
orderedlist
PRO
347
40k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
22k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
Transcript
+ Code 兄弟で始める継続的デリバリー AWS Fargate JAWS-UG コンテナ支部 入門編 #5 July
30, 2018 Ryo NAKAMARU, SUPINF Inc.
!2 今日はまるっと Fargate!! ついでに相性抜群の継続的デリバリー
早速 Fargate + α の紹介なんですが Black Belt の資料がよすぎるので そのまま一緒に読み合わせしますね! !3
!4
CI / CD パイプラインについて !5 もう少し こまかい
!6 CI / CD パイプライン local source repository CI CD
storage / docker repository cloud
!7 local source repository CI task runner CD storage /
docker repository cloud • ソースコード / 各種設定の バージョン管理 • 静的解析 • 単体テスト • コンパイル • デプロイ • 成果物の管理 • イメージ管理 (・ e2e / UI テスト ) • イベント制御 • イベントフック • 正常 / 異常終了通知 基本的な要素
!8 AWS サービスでいうと local source repository CI task runner CD
storage / docker repository cloud CodeCommit CodeBuild ECS / EKS / CodeDeploy /CloudFormation ECR / S3 CodePipeline
!9 Input と Output の選択肢 local source repository CI CD
docker repository staging env git push • master • release • other branches • tags • dev (edge) • branch-testing • staging • UAT • production edge env production env
!10 Input と Output の考慮ポイント例 local source repository CI CD
docker repository staging env edge env production env いつ? master ブランチ だけ push? 自動? 本番環境だけは 承認ボタン? 自由? master へは 直 push 禁止? テストする? e2e、UI など 全環境必要?
!11 例)1. master ブランチに push すると.. local source repository CI
CD docker repository staging env edge env production env
!12 例)2. tag を打つと.. local source repository CI CD docker
repository staging env edge env production env
source repository CI !13 例)3. リリースを承認すると.. local CD docker repository
staging env edge env production env
ところで、ご存知ですか !14
!15 ビル・ゲイツが TED で語った 教師の質を上げるために必要なこととは?
フィードバックを得ること! フィードバックを 受け、現状を 正しく把握 する 振り返りから改善点を学び、次に 活かす !16
フィードバックを 得て、理解して、生かす !17
フィードバックを !18 • もらう • 理解する • 次に生かす {
継続的デリバリーとコンテナも フィードバックのための手段! !19
!20 • もらう • 理解する • 次に生かす { フィードバックを Continuous
Delivery いち早く 継続的デリバリーで
フィードバックを !21 • もらう • 理解する • 次に生かす { 正確に
Fargate コンテナを使うことで
コンテナやパイプラインそのものの完成ではなく そこから フィードバックがどう得られるかが重要! !22
!23 今日のハンズオンのゴール CI / CD: Docker: フィードバックサイクルの短縮 再現性の向上、デプロイの汎化
!24 ハンズオンの流れ CloudFormation ECR CodePipeline CodeBuild CodeCommit master に push
1. 開発環境で確認 Fargate (Edge)
!25 ハンズオンの流れ release にマージ 2. リリース確認 Fargate (Staging) CloudFormation ECR
CodePipeline CodeBuild CodeCommit master に push 1. 開発環境で確認 Fargate (Edge)
!26 ハンズオンの流れ release にマージ 2. リリース確認 Fargate (Staging) Fargate (Production)
3. リリース承認 CloudFormation ECR CodePipeline CodeBuild CodeCommit master に push 1. 開発環境で確認 Fargate (Edge) 承認ボタンクリック
では、始めましょう! !27
!28 本日のお題 https://github.com/jawsug-container/hands-on/blob/master/fargate/README.md
!29 初歩的なことから始めたい方は https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/developerguide/ECS_AWSCLI_Fargate.html
Join us :)
JAWS-UG コンテナ支部 !31 • AWS でのコンテナ利用事例、ベストプラクティスの知見交換 • 定期的な AWS /
コンテナ初心者向けハンズオン • 懇親会でも熱くコンテナを語る参加者のみなさん 一緒に運営、 やりません?
SUPINF Inc. !32 • クラウド / コンテナ 中心の コンサルティング /
環境構築 / 受託開発 / 運用 • オンプレ × DGX-1 × Kubernetes 機械学習環境なども • スピンフ、と読みます