Skip to content

add CPE_NAME in OsRelease to support Amazon Linux 2

Tien Nguyen requested to merge neitomic/docker-machine:amzn-os-release into main

NOTE THAT THIS FORK IS MAINTAINED FOR CRITICAL BUG FIXES AFFECTING RUNNING COSTS ONLY. NO OTHER CONTRIBUTIONS WILL BE ACCEPTED.

What critical bug this MR is fixing?

Cannot handle OsRelease correctly for Amazon Linux

About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

Couldn't set key CPE_NAME, no corresponding struct field found

How does this change help reduce cost of usage? What scale of cost reduction is it?

This will allow to use AMZ linux instead of RHEL

In what scenarios is this change usable with GitLab Runner's docker+machine executor?

This will close #66 (closed)

Edited by Tien Nguyen

Merge request reports