-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathargs.sh
41 lines (32 loc) · 1.41 KB
/
args.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Abort script on failure and print commands as we execute them.
set -x -e
# GCP project to configure.
PROJECT_ID="chrome-remote-index"
# Machine type to use for index serving VM instances.
# 4 vCPUs and 32GB ram is enough for serving chrome-index for 6 different
# platforms.
# https://cloud.google.com/compute/docs/machine-types#e2_high-memory_machine_types
MACHINE_TYPE="e2-custom-6-49152"
DISK_SIZE="30GB"
# Used as base name for instance groups and machine instances.
BASE_INSTANCE_NAME="index-server"
# Fully qualified name for the server image in GCR.
IMAGE_IN_GCR="gcr.io/${PROJECT_ID}/${BASE_INSTANCE_NAME}"
# Basename for instance templates, can be suffixed with image SHAs.
BASE_TEMPLATE_NAME="${BASE_INSTANCE_NAME}-template"
# Following options are used by push_new_docker_image.sh to configure container
# for fetching new index artifacts and consuming them.
# Which github repository to use for fetching index artifacts.
INDEX_REPO="clangd/chrome-remote-index"
# Artifact prefix to fetch the index from and port number to serve it on.
# Separated by `:`.
INDEX_ASSET_PORT_PAIRS="chrome-index-linux:50051 \
chrome-index-chromeos:50052 \
chrome-index-android:50053 \
chrome-index-fuchsia:50054 \
chrome-index-chromecast-linux:50055 \
chrome-index-chromecast-android:50056"
# Absolute path to project root on indexer machine, passed to
# clangd-index-server.
INDEXER_PROJECT_ROOT="/chromium/src/"