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
Introduction to Cloud Run 2021
Search
sakajunquality
February 04, 2021
Technology
1.7k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Cloud Run 2021
https://gdg-tokyo.connpass.com/event/201523/
sakajunquality
February 04, 2021
More Decks by sakajunquality
See All by sakajunquality
AIと共生する開発者プラットフォーム:バクラクのモノレポ×マイクロサービス基盤
sakajunquality
3
8.2k
DevFest Tokyo 2023: Google Cloudでチームで安全にデプロイをする
sakajunquality
10
2k
Cloud Spanner Monitoring 入門 / Cloud Spanner Monitoring Introduction
sakajunquality
1
1.6k
GKE Overview March 2021: Introducing Autopilot
sakajunquality
1
940
Building Reliable Distributed Systems on GCP
sakajunquality
1
330
Istio 1.5 Updates
sakajunquality
4
2.1k
GCP 101: Getting Started through Cloud Run
sakajunquality
6
3.9k
Seeking Observability, Getting Started with Service Mesh
sakajunquality
0
230
Fastly Yamagoya Meetup: Leveraging Cloud Portability with Fastly
sakajunquality
0
16k
Other Decks in Technology
See All in Technology
20261031_IoTLT_vol140_kitazaki_v1.pdf
kitazaki
0
150
データマネジメント × 法務で作りあげる、 freeeの新しいデータガバナンスへの軌跡
freee
PRO
3
610
Lint の層を組み直した話
bengo4com
2
290
OneLakeをデータソースにした AI Search(Foundry IQ)の ライフサイクル管理
ryuseiiida
0
220
Vue で書く 空間コンピューティング、TresJS と WebXR を使ったXR デバイスのフロントエンド開発
hiranuma
0
150
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
2.9k
Copilot Coworkで「みのるん式」やってみた
minorun365
PRO
1
600
AX時代の自治体支援リソース再配分と役割分担の再構成:戦略とロードマップ(概要)
sishi2026
0
160
ALBのLCU予約とトラフィックの波によるプロダクト理解 / Understanding ALB LCU and Traffic Spikes
mito201
1
130
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
540
Oracle Database Security 詳細解説
oracle4engineer
PRO
1
200
仕様駆動開発の、その先へ。決める力と確かめる仕組み
inariku
1
160
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
650
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
880
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
740
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
520
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
960
Crafting Experiences
bethany
1
400
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
810
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
290
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
600
Transcript
Jun Sakata Google Developers Expert, Cloud @sakajunquality Cloud Run 入門
2021.02.04 #gdgtokyo GDG Tokyo New Year LT大会 2021
アジェンダ Cloud Run - Cloud Runとは - 使い方 - 他のプロダクトとの比較
- まとめ
Cloud Runとは コンテナを秒単位で本番環境にデプロイ
Cloud Run - フルマネージドのサーバーレスのプラットフォーム - 時間課金 / Scale to 0
- 任意コンテナイメージをデプロイ - HTTP / gRPC / WebSocket
Cloud Run - サーバーレスのアプリケーション - 任意コンテナイメージをデプロイ - HTTP / gRPC
/ WebSocket Cloud Run HTTP
Cloud Run - サーバーレスのアプリケーション - 任意コンテナイメージをデプロイ - HTTP / gRPC
/ WebSocket Cloud Run gRPC
使い方
Containers? - i.e. Docker Image
コンテナのリリース ソースコード コンテナ イメージ 実行環境
コンテナのリリース ソースコード コンテナ イメージ 実行環境 ビルド デプロイ
Dockerfile?
// 書く vim Dockerfile // ビルド gcloud builds submit --tag
[image] . // デプロイ gcloud run deploy --image [image]
Dockerfile書きたくない?
Google Cloud buildpacks - Dockerfileなしにコンテナイメージを作成 - CNCFのBuildpacksをベースとしたOSS - https://github.com/GoogleCloudPlatform/buildpacks
// けす rm Dockerfile // ビルド gcloud builds submit --pack
image=[image] // デプロイ gcloud run deploy --image [image]
1コマンドで?
// いらない rm Dockerfile // ビルドとデプロイ gcloud beta run deploy
--source .
コンテナのリリース(buildpacks) ソースコード コンテナ イメージ 実行環境
Dockerfileそれでも書いた ほうがいい場合も?
Cloud Runのリソース
Cloud Run リソース - CPU: 1,2,4 vCPU - Memory: max
8GB - 最大のリクエスト: 15m (GA), 60m (Preview) - インスタンス数: 0-1000 (最小も指定可能に) - インスタンスあたりの同時リクエスト: 1-250 - Custom Domain/Custom TLS Certificate - Cloud Traceとの連携
Cloud Run 簡易CIも - GitHubやCloud Source Repositiriesのソースコードに対してCloud Runに 対するデプロイのパイプラインをGUIで設定可能 -
https://cloud.google.com/run/docs/continuous-deployment-with-clo ud-build
Cloud Run w/ GitHub Actions - GitHub Actionsのヘルパーも公式で用意されている - https://github.com/google-github-actions/setup-gcloud
Cloud Runの連携 - Cloud Workflow - Cloud API Gateway -
Eventarc - etc...
Cloud Run Eventarc - Event driven trigger via Audit Logging
- https://cloud.google.com/blog/topics/developers-practitioners/event arc-unified-eventing-experience-google-cloud
他のGCPのプロダクト と比較?
v.s. App Engine (GAE) - 対応言語やバージョンの縛りがなくなる - Service Account が柔軟(複数サービス展開時)
- App Engineのがいいことも - Static Contents Server / Cloud CDN - Cloud IAP - (GAEの内部でも buildpack 使われてる)
v.s. Cloud Functions (GCF) - Runは各インスタンスが同時に複数リクエスト受けることができる - 主要言語に Functions フレームワークも提供しているのでRunをFaaSのよ
うな利用でも利用可能 - https://cloud.google.com/functions/docs/functions-framework?hl= en
v.s. Kubernetes Engine (GKE) - クラスター課金ではなくリクエストベースの課金 - クラスターが管理不要なので気軽に始められる - GKEのほうが柔軟性はある
- プロトコル, 実行時間の縛り, サイドカー, ローカルのディスクなど
まとめ Cloud Runはいいぞ!
まとめ - Cloud Runはフルマネージドのサーバーレスランタイム - BuildpacksによりDockerfileを書かなくてもよい - 日々アップデートされており柔軟なワークロードに対応 - リリースノート
- https://cloud.google.com/run/docs/release-notes?hl=en
Thank You! Jun Sakata Google Developers Expert, Cloud @sakajunquality