n25/pages/gcloud-single.md
jon brookes 09f36dff16 added gcloud intro
- Created a new script `instalL_asciinema.sh` to automate the installation of asciinema.
- The script detects the operating system and architecture to download the appropriate binary.
- Supports Linux (both musl and GNU) and macOS (Darwin).
- Sets executable permissions for the downloaded binary and verifies the installation by displaying the version.
2025-10-16 10:05:51 +01:00

1.3 KiB

level
2

GCE

Google Compute Engine


```bash
# 1. PREREQS
# 2. CONFIGURE
# 3. RUN
```


```bash
# PREREQS
# run pre flight checks ...
# 
# we need to run this at least once to ensure we have tooling available ...
```

```bash
# PREREQS
# run pre flight checks ...
cd /home/user/projects/infctl-cli # where we checked out infct-cli to
./gcloud/tf/scripts/pre-flight-checks.sh
```

```bash
# PREREQS
# running pre flight checks ...
./gcloud/tf/scripts/pre-flight-checks.sh
# .....

✅ tofu is installed,...

✅ gcloud is installed,...

✅ kubectl is installed,...

✅ envsubst is installed,...

# .....

✅ Pre-flight checks passed. You are ready to proceed 🙂
```



```bash
# CONFIGURE
[ -f .env ] || cp -v .env.gcloud-example .env
# edit to include
export PROJECT_NAME="the name of your gcp project, often referred to as the project"
export EMAIL="your email address to identify yourself with letsencrypt"
export APP_DOMAIN_NAME="your domain name for the app, e.g., frgdr.some-domain.com"
export INSTALL_FORGEJO="true"
```

```bash 
# RUN
LOG_FORMAT=none infctl -f ./gcloud/tf/scripts/build-gcloud-k3s-pipeline-wait-dns.json 
```



Lets see a Google Compute Engine install Demo