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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Takayuki
PRO
May 07, 2019
Programming
1
990
Google Cloud Runを試してみた
Google Cloud Runを試してみた
Takayuki
PRO
May 07, 2019
Tweet
Share
More Decks by Takayuki
See All by Takayuki
Laravel Applications with DDD x Clean Architecture x Vibe Coding
bumptakayuki
PRO
1
98
Laravel × Clean Architecture
bumptakayuki
PRO
1
480
エンジニアのキャリア論
bumptakayuki
PRO
1
240
地方カンファレンス主催のススメ
bumptakayuki
PRO
1
240
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
PRO
2
1.3k
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
PRO
0
740
沖縄観光、名物を一挙紹介!
bumptakayuki
PRO
2
730
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
PRO
1
3.1k
flutterでイベントアプリを作ってみた
bumptakayuki
PRO
0
180
Other Decks in Programming
See All in Programming
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
980
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
並行開発のためのコードレビュー
miyukiw
0
290
組織で育むオブザーバビリティ
ryota_hnk
0
180
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
220
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
Raku Raku Notion 20260128
hareyakayuruyaka
0
340
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
Testing 201, or: Great Expectations
jmmastey
46
8k
Test your architecture with Archunit
thirion
1
2.2k
Git: the NoSQL Database
bkeepers
PRO
432
66k
HDC tutorial
michielstock
1
390
Believing is Seeing
oripsolob
1
56
KATA
mclloyd
PRO
34
15k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Discover your Explorer Soul
emna__ayadi
2
1.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