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
Transcript
23 slides
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
More Decks by Takayuki
See All by Takayuki
Build an MCP Server in Laravel to Enable “AI-Operated” Recruiting Tools(English)
bumptakayuki
0
82
Laravel Applications with DDD x Clean Architecture x Vibe Coding
bumptakayuki
1
150
Laravel × Clean Architecture
bumptakayuki
1
680
エンジニアのキャリア論
bumptakayuki
1
320
地方カンファレンス主催のススメ
bumptakayuki
1
290
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
2
1.4k
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
0
860
沖縄観光、名物を一挙紹介!
bumptakayuki
2
900
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
1
3.8k
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(JP)
sodainc
1
40k
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
270
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
120
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
370
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
210
protojson における文字化けの扱い
kazuki1023
0
440
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
190
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
120
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
330
Git: the NoSQL Database
bkeepers
PRO
433
67k
Claude Code のすすめ
schroneko
67
230k
Color Theory Basics | Prateek | Gurzu
gurzu
1
520
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
580
Game over? The fight for quality and originality in the time of robots
wayneb77
1
330
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
400
WENDY [Excerpt]
tessaabrams
15
41k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
830