From b567d1e6e3aff88f900d5ec4fb148531746b211d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 7 Aug 2022 20:17:44 -0700 Subject: [PATCH] Add RockyLinux 8 and 9 --- docker/build/rocky-8/Dockerfile | 67 +++++++++++++++++++++++++++++++++ docker/build/rocky-9/Dockerfile | 64 +++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 docker/build/rocky-8/Dockerfile create mode 100644 docker/build/rocky-9/Dockerfile diff --git a/docker/build/rocky-8/Dockerfile b/docker/build/rocky-8/Dockerfile new file mode 100644 index 000000000..a2fad97e7 --- /dev/null +++ b/docker/build/rocky-8/Dockerfile @@ -0,0 +1,67 @@ +# The base image +FROM rockylinux:8 + +# Set environment variables +ENV DIST_NAME=rocky-8 +ENV USER=wxpy +ENV HOME=/home/$USER +ENV PYTHONUNBUFFERED=1 +ENV PATH=$HOME/bin:$PATH +ENV GTK2_OK=no + + +# Update and install basic OS packages +RUN \ +# yum -y install https://centos8.iuscommunity.org/ius-release.rpm; \ +# yum install \ +# https://repo.ius.io/ius-release-el8.rpm \ +# https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \ +# dnf config-manager --set-enabled PowerTools; \ + yum -y update; \ + yum -y group install development; \ + yum -y install sudo nano which; \ +# Set up a user, and etc. + mkdir -p /dist; \ + adduser -m ${USER}; \ + echo "${USER} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \ +# Install development packages needed for building wxPython + yum -y install \ + freeglut-devel \ + gstreamer1-devel \ + gstreamer1-plugins-base-devel \ + gtk3-devel \ + libjpeg-turbo-devel \ + libnotify \ + libnotify-devel \ + libpng-devel \ + libSM-devel \ + libtiff-devel \ + libXtst-devel \ + SDL-devel \ + webkit2gtk3-devel; \ +# Install all available Python packages and their dev packages + yum -y install python3 python3-tools python3-devel; \ + yum -y install python38 python38-devel; \ + yum -y install python39 python39-devel; \ +# Clean up the yum caches + yum clean all; + +# Set the user and group to use for the rest of the commands +USER ${USER}:${USER} + +# Set the working directory +WORKDIR ${HOME} + +# Create virtual environments for each Python +RUN \ + cd ${HOME}; \ + mkdir -p ${HOME}/venvs; \ + python3.8 -m venv venvs/Py38; \ + python3.9 -m venv venvs/Py39; + +# Add files from host into the container +COPY scripts ${HOME}/bin + +# Define default command +CMD ["/bin/bash", "-l"] + diff --git a/docker/build/rocky-9/Dockerfile b/docker/build/rocky-9/Dockerfile new file mode 100644 index 000000000..5cb583efd --- /dev/null +++ b/docker/build/rocky-9/Dockerfile @@ -0,0 +1,64 @@ +# The base image +FROM rockylinux:9 + +# Set environment variables +ENV DIST_NAME=rocky-9 +ENV USER=wxpy +ENV HOME=/home/$USER +ENV PYTHONUNBUFFERED=1 +ENV PATH=$HOME/bin:$PATH +ENV GTK2_OK=no + + +# Update and install basic OS packages +RUN \ +# yum -y install https://centos8.iuscommunity.org/ius-release.rpm; \ +# yum install \ +# https://repo.ius.io/ius-release-el8.rpm \ +# https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \ +# dnf config-manager --set-enabled PowerTools; \ + yum -y update; \ + yum -y group install development; \ + yum -y install sudo nano which; \ +# Set up a user, and etc. + mkdir -p /dist; \ + adduser -m ${USER}; \ + echo "${USER} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \ +# Install development packages needed for building wxPython + yum -y install \ + freeglut \ + gstreamer1-devel \ + gstreamer1-plugins-base-devel \ + gtk3-devel \ + libjpeg-turbo-devel \ + libnotify \ + libnotify-devel \ + libpng-devel \ + libSM-devel \ + libtiff-devel \ + libXtst-devel \ + SDL2-devel \ + webkit2gtk3-devel; \ +# Install all available Python packages and their dev packages + yum -y install python3 python3-devel; \ +# Clean up the yum caches + yum clean all; + +# Set the user and group to use for the rest of the commands +USER ${USER}:${USER} + +# Set the working directory +WORKDIR ${HOME} + +# Create virtual environments for each Python +RUN \ + cd ${HOME}; \ + mkdir -p ${HOME}/venvs; \ + python3.9 -m venv venvs/Py39; + +# Add files from host into the container +COPY scripts ${HOME}/bin + +# Define default command +CMD ["/bin/bash", "-l"] +