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
AWSで構築するDocker環境CI/CD | POST URBAN.inc 難波 啓司
Search
KEIJI NAMBA
January 26, 2021
Programming
2.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWSで構築するDocker環境CI/CD | POST URBAN.inc 難波 啓司
KEIJI NAMBA
January 26, 2021
Other Decks in Programming
See All in Programming
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
200
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.6k
SONY CISC-NEWS NWS-1750 + NWB-225 フレームバッファの NetBSD/news68k ドライバ実装 / OSC2026Hiroshima
tsutsui
0
160
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
350
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
370
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
310
Intent as Code
shoppingjaws
6
1.1k
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
280
アクセシビリティから考える情報設計
high_g_engineer
0
430
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
320
Security issues being discussed on Web Platforms
petamoriken
0
1.4k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
170
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
520
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
A designer walks into a library…
pauljervisheath
211
25k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
What's in a price? How to price your products and services
michaelherold
247
13k
How to make the Groovebox
asonas
2
2.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
It's Worth the Effort
3n
188
29k
GraphQLとの向き合い方2022年版
quramy
50
15k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Transcript
Code Pipeline, Code Build, ECR, ECS, Auto Scaling AWSで構築する Docker環境CI/CD
None
ONLY FIVEインフラ
Dockerの CI/CD環境
Code Pipeline Code Build ECS Github Integration ECR Push Images
Update Task Definition Build Test Push Build docker images. Run tests. Push docker images to ECR. Architecture
None
Code Build ECS Github Integration
IAM リソース権限管理 Code Build ECS Github Integration
None
version: 0.2 phases: install: runtime-versions: docker: 18 pre_build: commands: -
aws --version - $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email) - REPOSITORY_URI=000000000000.dkr.ecr.ap-northeast-1.amazonaws.com/example.com/app - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7) - IMAGE_TAG=${COMMIT_HASH:=latest} build: commands: - docker-compose -f docker-compose.prd.yml build - docker-compose -f docker-compose.prd.yml run app rails test - docker tag app REPOSITORY_URI:$IMAGE_TAG post_build: commands: - docker push $REPOSITORY_URI:$IMAGE_TAG - printf '[{"name":"app","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json artifacts: files: imagedefinitions.json AWS CLIのログインや変数の セットアップ PRE BUILD Dockerイメージのビルドとテス トの実行 BUILD ECRのレポジトリにビルドした イメージをプッシュ POST BUILD
Docker Dockerベースなのでビルド設定は compose buildするだけ
メモリ Build Server Spec メモリ メモリ メモリ
None
Rails Container Nginx Container Auto Scaling Group EC2 Instance
Rails Nginx Rails Nginx Load Balancer ALB
None
None
Code Pipeline Code Build ECS Github Integration ECR Push Images
Update Task Definition Build Test Push Build docker images. Run tests. Push docker images to ECR. Architecture
None
None
早いサイクルでリリース 今まで CI/CD
今後の”時間” に投資する
CREDITS: This presentation template was created by Slidesgo, including icons
by Flaticon, and infographics & images by Freepik THANKS Do you have any questions?
[email protected]
070-1877-9900 https://post-urban.co
None