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
Google Cloud Runを試してみた
Search
Takayuki
May 07, 2019
Programming
1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Google Cloud Runを試してみた
Google Cloud Runを試してみた
Takayuki
May 07, 2019
More Decks by Takayuki
See All by Takayuki
Build an MCP Server in Laravel to Enable “AI-Operated” Recruiting Tools(English)
bumptakayuki
0
67
Laravel Applications with DDD x Clean Architecture x Vibe Coding
bumptakayuki
1
140
Laravel × Clean Architecture
bumptakayuki
1
650
エンジニアのキャリア論
bumptakayuki
1
320
地方カンファレンス主催のススメ
bumptakayuki
1
280
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
2
1.4k
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
0
850
沖縄観光、名物を一挙紹介!
bumptakayuki
2
870
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
1
3.7k
Other Decks in Programming
See All in Programming
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
730
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
golang-bob.pdf
iwatsukayura
0
130
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
160
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Jetpack Compose Mechanisms
skydoves
2
730
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1k
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
1
190
mrbgem 三角測量 開発
ogom
0
240
R8 の設定見直しでアプリサイズ削減
andpad
0
210
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
16k
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
41k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
470
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Thoughts on Productivity
jonyablonski
76
5.4k
The Invisible Side of Design
smashingmag
301
52k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
470
The SEO Collaboration Effect
kristinabergwall1
1
590
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