digio / terraform-google-gitlab-runner

Terraform module for provisioning a GitLab CI Runner in a GCP project using the docker+machine executor.
Apache License 2.0
39 stars 41 forks source link

CentOS deprecation - breaking change #14

Open czomo opened 5 days ago

czomo commented 5 days ago

Issue

CentOS is deprecated since - June 30, 2024. This module have hardcode CentOS image making this useless as for now https://cloud.google.com/compute/docs/eol/centos-eol-guidance

czomo commented 5 days ago

I made some tests and instead of centos-cloud/centos-7 I used centos-cloud/centos-stream-9. CentOS stream is community supported image up to 2027. It works but the drawback is that it requires bigger instance than f1-micro because of OOMs. Here are my draft with the changes https://github.com/digio/terraform-google-gitlab-runner/pull/15/files.

2 cents: That test step with creating machine docker-machine create in init cloud is somehow faulty. Something between 167e5bb and https://github.com/digio/terraform-google-gitlab-runner/commit/4e15c169648d7cdd38305474e7eaed1e8e1cfa35 have changed that hangs the script. It wasn't working from master branch couple months ago either today.

Second thing is that F1-micro is no longer free tier available.

UPDATE(Aug, 2021): From Augest 1st, 2021, the Free Tier F1-micro VM is changing to the E2-micro VM as the VM to use for free. On August 1, 2021, E2-micro Free Tier will be introduced. Follow [these steps](https://cloud.google.com/compute/docs/instances/changing-machine-type-of-stopped-instance#before-you-begin) to change your machine type to E2-micro to avoid incurring charges for continuing to use F1-micro after August 31, 2021.