You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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**.
0 commit comments