gcp-cloud-run by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill gcp-cloud-runGoogle Cloud Run 使您能够大规模部署容器化应用程序,而无需管理基础设施。运行无状态 HTTP 容器,支持从零到数千个实例的自动扩缩,只需为消耗的计算时间付费。
最小工作示例:
# 构建容器镜像
gcloud builds submit --tag gcr.io/MY_PROJECT_ID/my-app:latest
# 部署到 Cloud Run
gcloud run deploy my-app \
--image gcr.io/MY_PROJECT_ID/my-app:latest \
--platform managed \
--region us-central1 \
--memory 512Mi \
--cpu 1 \
--timeout 3600 \
--max-instances 100 \
--min-instances 1 \
--no-allow-unauthenticated \
--set-env-vars NODE_ENV=production,DATABASE_URL=postgresql://...
# 允许公共访问
gcloud run services add-iam-policy-binding my-app \
--platform managed \
--region us-central1 \
--member=allUsers \
--role=roles/run.invoker
# 获取服务 URL
gcloud run services describe my-app \
// ... (完整实现请参阅参考指南)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/ 目录下的详细实现:
| 指南 | 内容 |
|---|---|
| 使用 gcloud CLI 部署 Cloud Run | 使用 gcloud CLI 部署 Cloud Run |
| 容器化应用程序 (Node.js) | 容器化应用程序 (Node.js) |
| Terraform Cloud Run 配置 | Terraform Cloud Run 配置 |
| Docker 构建与推送 | Docker 构建与推送 |
每周安装数
137
代码仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
安装于
opencode120
gemini-cli118
claude-code113
codex111
cursor108
github-copilot99
Google Cloud Run enables deployment of containerized applications at scale without managing infrastructure. Run stateless HTTP containers with automatic scaling from zero to thousands of instances, paying only for compute time consumed.
Minimal working example:
# Build container image
gcloud builds submit --tag gcr.io/MY_PROJECT_ID/my-app:latest
# Deploy to Cloud Run
gcloud run deploy my-app \
--image gcr.io/MY_PROJECT_ID/my-app:latest \
--platform managed \
--region us-central1 \
--memory 512Mi \
--cpu 1 \
--timeout 3600 \
--max-instances 100 \
--min-instances 1 \
--no-allow-unauthenticated \
--set-env-vars NODE_ENV=production,DATABASE_URL=postgresql://...
# Allow public access
gcloud run services add-iam-policy-binding my-app \
--platform managed \
--region us-central1 \
--member=allUsers \
--role=roles/run.invoker
# Get service URL
gcloud run services describe my-app \
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Cloud Run Deployment with gcloud CLI | Cloud Run Deployment with gcloud CLI |
| Containerized Application (Node.js) | Containerized Application (Node.js) |
| Terraform Cloud Run Configuration | Terraform Cloud Run Configuration |
| Docker Build and Push | Docker Build and Push |
Weekly Installs
137
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykPass
Installed on
opencode120
gemini-cli118
claude-code113
codex111
cursor108
github-copilot99
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
119,800 周安装