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
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
Vibes Containers 〜AIで変わるコンテナ設計と運用〜
tkikuc
2
500
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
470
AIに既存システムを理解させる技術 ~レガシーを見捨てないハーネスエンジニアリング入門~
ochtum
0
210
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
120
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
Foundry Localでエージェント開発
seosoft
0
150
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
120
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
270
Oxlintはいいぞ(続)
yug1224
1
560
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
230
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
130
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
220
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
Evolving SEO for Evolving Search Engines
ryanjones
0
280
Visualization
eitanlees
152
17k
A better future with KSS
kneath
240
18k
Utilizing Notion as your number one productivity tool
mfonobong
4
570
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