Skip to content

Commit

Permalink
[WIP] Fixing CentOS Stream 8 and Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
da115115 committed Oct 28, 2024
1 parent 7379c91 commit 7bff0b9
Show file tree
Hide file tree
Showing 15 changed files with 164 additions and 65 deletions.
24 changes: 16 additions & 8 deletions centos8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,27 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Docker build time environment variables
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Import the Centos-8 GPG key to prevent warnings
RUN rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official && \
rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Testing

# Add the repository for PowerTools
# As CentOS Stream 8 has been deprecated, the RPM repositories are now archived.
# The following is a temporary work around. The long term solution is to upgrade
# to CentOS Stream 9 (or soon to CentOS Stream 10)
ADD resources/CentOS-Stream-AppStream.repo /etc/yum.repos.d/CentOS-Stream-AppStream.repo
ADD resources/CentOS-Stream-BaseOS.repo /etc/yum.repos.d/CentOS-Stream-BaseOS.repo
ADD resources/CentOS-Stream-Extras-common.repo /etc/yum.repos.d/CentOS-Stream-Extras-common.repo
ADD resources/CentOS-Stream-Extras.repo /etc/yum.repos.d/CentOS-Stream-Extras.repo
ADD resources/CentOS-Stream-PowerTools.repo etc/yum.repos.d/CentOS-Stream-PowerTools.repo

# Add the config manager
RUN dnf -y install 'dnf-command(config-manager)'
RUN dnf config-manager --set-enabled powertools

# Add EPEL support
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Expand Down Expand Up @@ -108,7 +116,7 @@ WORKDIR $HOME/.pyenv
RUN git pull && hash -r
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
18 changes: 18 additions & 0 deletions centos8/resources/CentOS-Stream-AppStream.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CentOS-Stream-AppStream.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[appstream]
name=CentOS Stream $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/AppStream/$basearch/os/
#baseurl=http://mirror.centos.org/$contentdir/$stream/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
18 changes: 18 additions & 0 deletions centos8/resources/CentOS-Stream-BaseOS.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CentOS-Stream-BaseOS.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[baseos]
name=CentOS Stream $releasever - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/BaseOS/$basearch/os/
#baseurl=http://mirror.centos.org/$contentdir/$stream/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
19 changes: 19 additions & 0 deletions centos8/resources/CentOS-Stream-Extras-common.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CentOS-Stream-Extras-common.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[extras-common]
name=CentOS Stream $releasever - Extras common packages
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=extras-extras-common
baseurl=http://vault.centos.org/$contentdir/$stream/extras/$basearch/extras-common/
#baseurl=http://mirror.centos.org/$contentdir/$stream/extras/$basearch/extras-common/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras

20 changes: 20 additions & 0 deletions centos8/resources/CentOS-Stream-Extras.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CentOS-Stream-Extras.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[extras]
name=CentOS Stream $releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=extras&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/extras/$basearch/os/
#baseurl=http://mirror.centos.org/$contentdir/$stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial


18 changes: 18 additions & 0 deletions centos8/resources/CentOS-Stream-PowerTools.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CentOS-Stream-PowerTools.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[powertools]
name=CentOS Stream $releasever - PowerTools
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/PowerTools/$basearch/os/
#baseurl=http://mirror.centos.org/$contentdir/$stream/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
12 changes: 6 additions & 6 deletions centos9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Docker build time environment variables
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Import the Centos-8 GPG key to prevent warnings
RUN rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official && \
Expand Down Expand Up @@ -105,7 +105,7 @@ WORKDIR $HOME/.pyenv
RUN git pull && hash -r
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
13 changes: 6 additions & 7 deletions debian11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Environment
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LANG4GEN en_US.utf8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Update the system
RUN echo "Europe/Paris" > /etc/timezone
Expand Down Expand Up @@ -116,7 +115,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
13 changes: 6 additions & 7 deletions debian12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Environment
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LANG4GEN en_US.utf8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Update the system
RUN echo "Europe/Paris" > /etc/timezone
Expand Down Expand Up @@ -116,7 +115,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
12 changes: 6 additions & 6 deletions fedora39/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ LABEL authors="Christophe Gattardi <[email protected]>"
LABEL version="0.1"

# Docker build time environment variables
ENV container docker
ENV HOME /home/build
ENV container="docker"
ENV HOME="/home/build"

# Update of Fedora and configure the locale
RUN dnf -y upgrade && \
Expand All @@ -19,9 +19,9 @@ RUN dnf -y upgrade && \
localedef -f UTF-8 -i en_US en_US.UTF-8

#
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Environment for the `root` user
ADD resources/bashrc /root/.bashrc
Expand Down Expand Up @@ -88,7 +88,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
12 changes: 6 additions & 6 deletions fedora40/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ LABEL authors="Christophe Gattardi <[email protected]>"
LABEL version="0.1"

# Docker build time environment variables
ENV container docker
ENV HOME /home/build
ENV container="docker"
ENV HOME="/home/build"

# Update of Fedora and configure the locale
RUN dnf -y upgrade && \
Expand All @@ -19,9 +19,9 @@ RUN dnf -y upgrade && \
localedef -f UTF-8 -i en_US en_US.UTF-8

#
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Environment for the `root` user
ADD resources/bashrc /root/.bashrc
Expand Down Expand Up @@ -88,7 +88,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
12 changes: 6 additions & 6 deletions rocky9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Docker build time environment variables
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Add the repository for CodeReady Linux Builder (CRB)
RUN dnf -y install 'dnf-command(config-manager)'
Expand Down Expand Up @@ -103,7 +103,7 @@ WORKDIR $HOME/.pyenv
RUN git pull && hash -r
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
12 changes: 6 additions & 6 deletions ubuntu2004/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Environment
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Update the system
RUN echo "Europe/Paris" > /etc/timezone
Expand Down Expand Up @@ -115,7 +115,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
12 changes: 6 additions & 6 deletions ubuntu2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ LABEL authors="Denis Arnaud <denis.arnaud_github at m4x dot org>"
LABEL version="0.1"

# Environment
ENV container docker
ENV HOME /home/build
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
ENV container="docker"
ENV HOME="/home/build"
ENV LANGUAGE="en_US:en"
ENV LANG="en_US.UTF-8"
ENV LC_ALL="$LANG"

# Update the system
RUN echo "Europe/Paris" > /etc/timezone
Expand Down Expand Up @@ -115,7 +115,7 @@ WORKDIR $HOME/.pyenv
RUN git pull
WORKDIR $HOME

ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
ENV PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
# Python 3.8.20
RUN pyenv install 3.8.20 && \
pyenv global 3.8.20 && \
Expand Down
Loading

0 comments on commit 7bff0b9

Please sign in to comment.