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
Amazon ECR を利用していたと思ったら、Docker Hub を利用し続けていた / ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bake0937
December 28, 2020
Technology
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
120
GASを使って非エンジニアが AWS Step Functions を 操作できる仕組みの紹介 / Introducing how non-engineers can operate AWS Step Functions using GAS
bake0937
1
510
CircleCI の有料プランを導入するためにやったこと/What I did to introduce CircleCI's paid plan
bake0937
0
1.8k
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
220
Jest + Puppeteer によるE2Eテストで確認作業を短縮してみた / End-to-end testing by Jest + Puppeteer shortened the confirmation work
bake0937
0
740
所属企業の Advent Calendar を初めて作った時に学んだこと / What I learned when I first created my company's Advent Calendar
bake0937
1
880
Notion 📚 へ移行して 3ヶ月経った振り返り / Looking back at Notion after 3 months
bake0937
0
6k
Bot開発でRubyを学ぶ / Learn Ruby with Bot Development
bake0937
0
500
Other Decks in Technology
See All in Technology
失敗を資産に変えるClaude Code
shinyasaita
0
670
FinOps × AIエージェントで実現する コストインシデントの自動調査
oasis1994liveforever
0
140
「エンジニア進化論」2028年の開発完全自動化、エンジニアはどう進化するか
cyberagentdevelopers
PRO
6
5.3k
2026TECHFRESH畢業分享會 - 葬送的通靈師:化系統與用戶雜訊成行動訊號
line_developers_tw
PRO
0
1.1k
2026TECHFRESH畢業分享會 - 原生還是跨平台? App 開發踩坑實錄
line_developers_tw
PRO
0
1.1k
SONiCの統計情報を取得したい
sonic
0
180
2026TECHFRESH畢業分享會 - Lightning Talk - 打造精準高效的 MCP 設計模式與測試實務
line_developers_tw
PRO
0
1.1k
中期計画、2回作ってみた ~業務委託と正社員、両方の視点から~
demaecan
1
880
なぜ Platform Engineering の土台に Kubernetes を選ぶのか
r4ynode
2
640
データサイエンスを価値につなげるプロジェクト設計 〜 DS一年目が現場で得た気づき 〜
ysd113
1
260
連合学習と機密コンピューティング
lycorptech_jp
PRO
0
120
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.1k
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
160
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
780
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
ラッコキーワード サービス紹介資料
rakko
1
3.6M
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
WENDY [Excerpt]
tessaabrams
11
38k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
560
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
190
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 を勉強するモチベー ションが上がった
ご清聴ありがとうございました