Skip to content
Snippets Groups Projects
Unverified Commit 8b06add9 authored by Stan Hu's avatar Stan Hu
Browse files

gce: Update Ubuntu version to 20.04

Ubuntu 16.04 is no longer supported by Docker. When Docker
Machine attempts to install Docker on a newly-provisioned VM,
the script fails because the `apt install` no longer has
a package to install.

Discovered in https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/4676#note_1806331339
parent c6a296fc
Branches
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ To create a machine instance, specify `--driver google`, the project id and the
- `--google-use-internal-ip-only`: When this option is used during create, the new VM will not be assigned a public IP address. This is useful only when the host running `docker-machine` is located inside the Google Cloud infrastructure; otherwise, `docker-machine` can't reach the VM to provision the Docker daemon. The presence of this flag implies `--google-use-internal-ip`.
- `--google-use-existing`: Don't create a new VM, use an existing one. This is useful when you'd like to provision Docker on a VM you created yourself, maybe because it uses create options not supported by this driver.
The GCE driver will use the `ubuntu-1510-wily-v20151114` instance image unless otherwise specified. To obtain a
The GCE driver will use the `ubuntu-2004-focal-v20240229` instance image unless otherwise specified. To obtain a
list of image URLs run:
gcloud compute images list --uri
......@@ -65,7 +65,7 @@ Environment variables and default values:
| **`--google-project`** | `GOOGLE_PROJECT` | - |
| `--google-zone` | `GOOGLE_ZONE` | `us-central1-a` |
| `--google-machine-type` | `GOOGLE_MACHINE_TYPE` | `f1-standard-1` |
| `--google-machine-image` | `GOOGLE_MACHINE_IMAGE` | `ubuntu-1510-wily-v20151114` |
| `--google-machine-image` | `GOOGLE_MACHINE_IMAGE` | `ubuntu-2004-focal-v20240229` |
| `--google-username` | `GOOGLE_USERNAME` | `docker-user` |
| `--google-scopes` | `GOOGLE_SCOPES` | `devstorage.read_only,logging.write` |
| `--google-disk-size` | `GOOGLE_DISK_SIZE` | `10` |
......
......@@ -72,7 +72,7 @@ const (
defaultZone = "us-central1-a"
defaultUser = "ubuntu"
defaultMachineType = "n1-standard-1"
defaultImageName = "ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20210928"
defaultImageName = "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20240229"
defaultServiceAccount = "default"
defaultScopes = "https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write"
defaultDiskType = "pd-standard"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment