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
Google Cloud Runを試してみた
Search
Takayuki
May 07, 2019
Programming
1
990
Google Cloud Runを試してみた
Google Cloud Runを試してみた
Takayuki
May 07, 2019
Tweet
Share
More Decks by Takayuki
See All by Takayuki
Laravel Applications with DDD x Clean Architecture x Vibe Coding
bumptakayuki
1
110
Laravel × Clean Architecture
bumptakayuki
1
500
エンジニアのキャリア論
bumptakayuki
1
250
地方カンファレンス主催のススメ
bumptakayuki
1
250
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
2
1.3k
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
0
760
沖縄観光、名物を一挙紹介!
bumptakayuki
2
750
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
1
3.2k
flutterでイベントアプリを作ってみた
bumptakayuki
0
190
Other Decks in Programming
See All in Programming
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
400
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
290
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
710
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
5
1.1k
20260315 AWSなんもわからん🥲
chiilog
2
160
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
290
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
210
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
270
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
エラーログのマスキングの仕組みづくりに役立ったASTの話
kumoichi
0
240
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
140
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
260
Featured
See All Featured
Between Models and Reality
mayunak
2
240
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
How to Ace a Technical Interview
jacobian
281
24k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
WENDY [Excerpt]
tessaabrams
9
36k
Thoughts on Productivity
jonyablonski
75
5.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
For a Future-Friendly Web
brad_frost
183
10k
Typedesign – Prime Four
hannesfritz
42
3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
140
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Transcript
Google Cloud Run Λࢼͯ͠Έͨ
1 ձࣾհɾࣗݾհ 2 Cloud Runͱ Agenda 3 σϓϩΠํ๏
1 ձࣾհɾࣗݾհ
4 ࣗݾհ ◆໊લ ླ ೭(Suzuki Takayuki) ◆ࣗݾհ ɾ1990ɺਆಸݝੜ·Εɻ ɾࣾձਓʹͳ͔ͬͯΒɺϓϩάϥϛϯάΛ࢝ΊΔɻ ɾ2015ʹϑϧεϐʔυʹೖࣾ͠ɺ2017ʹϑϦʔϥ
ϯεΛͬͨޙʹ201711݄ʹԭೄͰىۀɻ ◆झຯ ίεϓϨɺԻָϥΠϒɺϚϥιϯେձʹग़Δɺٿ؍ ઓ ◆Twitter @kanbo0605
Copyright Re:Build.inc All Rights Reserved. 1.ձࣾհ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝԭೄࢢதԝ̍ஸ̍̒−̕
◆ࣄۀ༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 5໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪͯ͠·͢ʂ
2 Cloud Runͱ
7 Cloud Runͱ Google Cloud Next 2019 in San Francisco
ʢ2019 4݄9~11ʣͰൃද Kubernetes ্ͰαʔόʔϨεڥΛ࣮ݱ͢Δ Knative Λϕʔεʹͨ͠ɺ৽͍͠αʔόʔϨεͷαʔϏε
8 Cloud Runͱ https://www.youtube.com/watch?v=nJ0L28ZfmUA
9 Cloud Runͱ https://console.cloud.google.com/marketplace/details/google/run.googleapis.com
3 σϓϩΠํ๏
11 ࣄલ४උ - GCPͷཧը໘ͰϓϩδΣΫτΛ࡞͢Δ - ϓϩδΣΫτͷࢧ͍Λ༗ޮʹ͢Δ - Cloud Run APIΛ༗ޮʹ͢Δ
- CloudSDKͷΠϯετʔϧࡁΈ/ઃఆࡁΈͰ͋Δ͜ͱ - componentsͷupdateͱɺbeta componentsͷinstall Λ࣮ߦ
1 2 GCPͷཧը໘ͰϓϩδΣΫτΛ࡞͢Δ
1 3 ϓϩδΣΫτͷࢧ͍Λ༗ޮʹ͢Δ
1 4 Cloud Run APIΛ༗ޮʹ͢Δ
1 5 CloudSDKͷΠϯετʔϧࡁΈ/ઃఆࡁΈͰ͋Δ͜ͱ https://qiita.com/mokrai/items/963af2575b53091d0bf6
1 6 componentsͷupdateͱɺbeta componentsͷinstallΛ࣮ߦ ɾίϯϙʔωϯτΛupdate͢Δ $ gcloud components update ɾbetaίϯϙʔωϯτΛinstall͢Δ
$ gcloud components install beta
1 7 Cloud RunͷϦʔδϣϯΛઃఆ͢Δ us-central1Ͱ࣮ߦ͠·͢ $ gcloud config set run/region
us-central1
1 8 ϏϧυͱσϓϩΠ ࢼ͠ʹGoͷίϯςφΛCloudRunͰ࣮ߦ͠·͢ɻ ᶃσΟϨΫτϦͷ࡞ ᶄσΟϨΫτϦΛ࡞͠ɺσΟϨΫτϦԼʹҠಈ͠· ͢ $ mkdir helloworld-go
$ cd helloworld-go
1 9 ϏϧυͱσϓϩΠ ᶅGoϑΝΠϧΛ࡞ ᶆDockerϑΝΠϧͷ࡞ ᶇίϯςφΛBuild͠ɺGCRʹupload͢Δ DockerfileΛஔͨ͠σΟϨΫτϦͰҎԼͷίϚϯυΛ࣮ߦ͠ɺίϯςφΛBuild͠·͢ɻ $ gcloud builds
submit --project ${PROJECT_ID} --tag gcr.io/${PROJECT_ID}/helloworld ޭ͢ΔͱGCRʹupload͞Ε·͢ ᶈCloud RunʹσϓϩΠ͠·͢ $ gcloud beta run deploy --project ${PROJECT_ID} --image gcr.io/${PROJECT_ID}/ helloworld
2 0 ϏϧυͱσϓϩΠ
2 1 ϏϧυͱσϓϩΠ URL͕ੜ͞ΕΔ
2 2 ϏϧυͱσϓϩΠ σϓϩΠྃʂ
2 3 ࢀߟจݙ h t t p s : /
/ m e d i u m . c o m / g o o g l e - c l o u d - j p / c l o u d - r u n - %E3%82%92%E6%9C%80%E9%80%9F%E3%81%A7%E8%A7%A6 %E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B-6e42021307d4