
This change updates the version of centos that we currently contain in the repository to 9-stream. Change-Id: Ia4f4d6eaee6d9e272f5276ce961691fa980cd957
17 lines
606 B
Docker
17 lines
606 B
Docker
ARG FROM=centos:9-stream
|
|
FROM ${FROM}
|
|
|
|
ARG PACKAGE_MIRROR=mirror.centos.org
|
|
ARG PIP_INDEX_URL=https://pypi.python.org/simple/
|
|
ARG PIP_TRUSTED_HOST=pypi.python.org
|
|
ENV PIP_INDEX_URL=${PIP_INDEX_URL}
|
|
ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST}
|
|
|
|
RUN rm -rf /etc/yum.repos.d/*
|
|
COPY CentOS.repo /etc/yum.repos.d/
|
|
COPY RPM-GPG-KEY-CentOS-SIG-Cloud /etc/pki/rpm-gpg/
|
|
RUN sed -i "s|%%PACKAGE_MIRROR%%|${PACKAGE_MIRROR}|g" /etc/yum.repos.d/CentOS.repo \
|
|
&& yum update -y
|
|
# NOTE(aostapenko) repositories are restored on yum update, deleting them again
|
|
RUN find /etc/yum.repos.d/ -type f ! -name 'CentOS.repo' -delete
|