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
Amazon ECR を利用していたと思ったら、Docker Hub を利用し続けていた / ...
Search
bake0937
December 28, 2020
Technology
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Amazon ECR を利用していたと思ったら、Docker Hub を利用し続けていた / If I thought I was using Amazon ECR, I continued to use Docker Hub
ゆるWeb勉強会@札幌 OnLine #11 で登壇した際の資料です
https://mild-web-sap.connpass.com/event/197638/
bake0937
December 28, 2020
More Decks by bake0937
See All by bake0937
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
200
GASを使って非エンジニアが AWS Step Functions を 操作できる仕組みの紹介 / Introducing how non-engineers can operate AWS Step Functions using GAS
bake0937
1
540
CircleCI の有料プランを導入するためにやったこと/What I did to introduce CircleCI's paid plan
bake0937
0
2k
FlutterアプリのiOSビルドとアーカイブを CircleCI で自動化してみた / Tried automating the iOS build and archive of the Flutter app with CircleCI
bake0937
0
1.3k
Probot で学ぶ TypeScript / Learn with Probot TypeScript
bake0937
0
240
Jest + Puppeteer によるE2Eテストで確認作業を短縮してみた / End-to-end testing by Jest + Puppeteer shortened the confirmation work
bake0937
0
780
所属企業の Advent Calendar を初めて作った時に学んだこと / What I learned when I first created my company's Advent Calendar
bake0937
1
910
Notion 📚 へ移行して 3ヶ月経った振り返り / Looking back at Notion after 3 months
bake0937
0
6k
Bot開発でRubyを学ぶ / Learn Ruby with Bot Development
bake0937
0
530
Other Decks in Technology
See All in Technology
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
150
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
540
`go get`したらELFが降ってきた件
taiyow
0
170
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
380
Active Directory と Entra ID のむむむな関係
murachiakira
PRO
2
1.3k
cdkd (CDK Direct)
gotok365
3
220
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
790
今から始めるAWS環境の暗号移行 - ポスト量子時代に備える
sato4mi
0
150
Claude Codeで作ったアプリを安全に公開する/Built with Claude Japan 2026
yoshidashingo
0
140
AI AgentによるEmbedded SREの取り組み
tgidgd
1
340
2026 Apache Flink Community Checkpoint
rmetzger
0
170
素人でもできた!AIを使った短編小説創作入門
delhi09
PRO
0
310
Featured
See All Featured
Fireside Chat
paigeccino
43
4.1k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
580
Utilizing Notion as your number one productivity tool
mfonobong
4
640
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
The Language of Interfaces
destraynor
162
27k
New Earth Scene 8
popppiees
4
2.8k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
800
Rails Girls Zürich Keynote
gr2m
96
14k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Between Models and Reality
mayunak
4
560
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Six Lessons from altMBA
skipperchong
29
4.6k
Transcript
Amazon ECR を利用していた と思ったら、Docker Hub を利 用し続けていた okabeeeat 2020.12.28
/ ゆるWeb勉強会@札幌 OnLine #11
某ライフスタイルメディアで Rails や JavsScript を書いてます 札幌市出身(東京都在住) よく使っていたモーグルの技: スプレッドイーグル 好きなモーグルの技: フロントフリップ
岡部恭平 @okabeeeat Webアプリケーションエンジニア
本日は5分LTな ので
構築時に凡ミスした ことを共有します
CI の構成
buildspec.yml(pre_build部分) 〜
CI用のdocker-compose.yml 〜
色々詰まったが何とかを 構築できた
そんなある日... Scaling Docker to Serve Millions More Developers: Network Egress,
https://www.docker.com/blog/scaling-docker-to-serve-millions-more-developers-network-egress/ Docker Hub で Pull 回数に制限が...
Amazon ECR を使ってる から大丈夫!!!
しかし...
Too Many Requests...
なぜ...
CI 用の .env を見てみると... COMPOSE_FILE !?
COMPOSE_FILE とは? Compose ファイルへのパスを指定します。 指定されなかった場 合、Compose はカレントディレクトリ内の docker-compose.yml と いうファイルを探します。
そしてファイルが見つからなければ、この 名前のファイルを見つけるまで親ディレクトリを順にたどって探しま す。 Compose CLI 環境変数, https://docs.docker.jp/compose/reference/envvars.html
build しちゃってる... 〜 〜
つまり... buildspec.ymlにある docker-compose.ymlは 意味がなかった...
CI の構成(こうだと思っていた...)
実際
対策
やっとこの構成になった... Pull 回数の制限も気にしなくて良くなった
まとめと所感 ・Amazon ECR を利用していたと思ったら、Docker Hub を利用し続けていた ・Docker の知識が不足していた ・環境変数への注意が向いていなかった ・buildspec.ymlを修正し,やっとAmazon
ECRを利用 することができた ・ の構築を通して,Docker を勉強するモチベー ションが上がった
ご清聴ありがとうございました