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で構築するDocker環境CI/CD | POST URBAN.inc 難波 啓司
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
関係性から理解する"同一性"の型用語たち
pvcresin
2
640
CSC307 Lecture 17
javiergs
PRO
0
310
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
150
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
550
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
140
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
1.2k
AIエージェントの隔離技術の徹底比較
kawayu
0
460
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
1.1k
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
110
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.6k
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.2k
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
230
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
360
Skip the Path - Find Your Career Trail
mkilby
1
140
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
From π to Pie charts
rasagy
0
200
Visualization
eitanlees
152
17k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
160
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Everyday Curiosity
cassininazir
0
220
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