
CentOS 7 reached EOL on 30th June 2024[1] and RHEL 7 ended its maintenance support 2 phase[2] the same date. This change removes the ablity to build images derived from these base images. The centos and centos-minimal elements now default to a DIB_RELEASE value of 9-stream. [1] https://www.redhat.com/en/topics/linux/centos-linux-eol [2] https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/rhel-7-end-of-maintenance Change-Id: Ic50e08d9f84bbd319129be236d799eade5f40be8
27 lines
753 B
Bash
Executable File
27 lines
753 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ ${DISTRO_NAME} =~ (centos|rhel) ]]; then
|
|
# RHEL8 onwards has a system python, separate from the user python. What
|
|
# a good idea, abstracting the python binary for system scripts!
|
|
# :) Use it for dib-python.
|
|
python_path=/usr/libexec/platform-python
|
|
elif [[ ${DISTRO_NAME} =~ (debian) && ${DIB_PYTHON_VERSION} == 3 ]]; then
|
|
apt-get install -y python3
|
|
python_path=$(command -v python${DIB_PYTHON_VERSION})
|
|
else
|
|
python_path=$(command -v python${DIB_PYTHON_VERSION})
|
|
fi
|
|
|
|
if [ -z "$python_path" ]; then
|
|
echo "Could not find python${DIB_PYTHON_VERSION} executable."
|
|
exit 1
|
|
fi
|
|
|
|
ln -sf $python_path /usr/local/bin/dib-python
|