Skip to content

Commit 10b65f5

Browse files
authored
add initial google cloud deploy docs (#31)
1 parent 13429b6 commit 10b65f5

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default defineConfig({
5353
{ text: "Cost Calculator", link: "/deploy/cost" },
5454
{ text: "AWS", link: "/deploy/aws" },
5555
{ text: "Cloudflare", link: "/deploy/cloudflare" },
56+
{ text: "Google Cloud", link: "/deploy/google-cloud" },
5657
{ text: "Server (Caddy)", link: "/deploy/server" },
5758
],
5859
},

deploy/google-cloud.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Google Cloud
2+
3+
PMTiles can be served from a [Cloud Run container](https://console.cloud.google.com/run) using the [go-pmtiles Docker image](https://hub.docker.com/repository/docker/protomaps/go-pmtiles/general).
4+
5+
## Cloud Storage
6+
7+
## Service Account
8+
9+
## Creating a Cloud Run container
10+
11+
1. In the [Cloud Run console](https://console.cloud.google.com/run), choose **Create Service**.
12+
13+
2. Choose **Deploy one revision from an existing container image.**
14+
15+
3. Specify the Container image URL `protomaps/go-pmtiles:latest`.
16+
17+
4. Choose a descriptive **Service name** like `protomaps-demo`.
18+
19+
5. Select the same **Region** as your Cloud Storage bucket.
20+
21+
6. Select **Allow unauthenticated invocations.**
22+
23+
7. For CPU Allocation **Service Autoscaling**, leave the defaults (only allocated during processing + 0 minimum instances).
24+
25+
8. Under **Container(s), Volumes, Networking, Security**:
26+
27+
1. Leave the default container port (8080).
28+
29+
2. Leave the container command blank (default entry point)
30+
31+
3. Specify the arguments: `serve . --bucket=gs://BUCKET --cache-size=500 --public-url=https://example.com` replacing `BUCKET` with the name of your bucket and `https://example.com` with your custom domain.
32+
33+
4. Set `Memory` to 1 GiB.
34+
35+
5. Change **Execution Environment** to **2nd Generation**.
36+
37+
6. Set **Maximum Number of Instances** to 1.
38+
39+

0 commit comments

Comments
 (0)