Skip to content

Failed to build CentOS Stream 10 when atio .Release.Version #65

@ssst0n3

Description

@ssst0n3
Docker image based on CentOS Stream 10 (Coughlan)
Error: template: centos.Dockerfile:5:15: executing "centos.Dockerfile" at <atoi .Release.Version>: error calling atoi: strconv.Atoi: parsing "10 (Coughlan)": invalid syntax
Template: centos.Dockerfile:5:15: executing "centos.Dockerfile" at <atoi .Release.Version>: error calling atoi: strconv.Atoi: parsing "10 (Coughlan)": invalid syntax

We should use VERSION_ID instead of VERSION, see PR #66

$ docker run -ti quay.io/centos/centos:stream10-minimal
bash-5.2# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="10 (Coughlan)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="10"
PLATFORM_ID="platform:el10"
PRETTY_NAME="CentOS Stream 10 (Coughlan)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:10"
HOME_URL="https://centos.org/"
VENDOR_NAME="CentOS"
VENDOR_URL="https://centos.org/"
BUG_REPORT_URL="https://issues.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 10"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
bash-5.2#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions