Skip to content

Commit

Permalink
Add and update docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Jun 2, 2023
1 parent 8bdbeb7 commit a728fa1
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 12 deletions.
2 changes: 1 addition & 1 deletion buildbot/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ regularBuilders = [ #'build-osx-py36',
'build-gtk2-py38',
'build-gtk2-py39',
#'build-gtk3-py36',
'build-gtk3-py37',
#'build-gtk3-py37',
'build-gtk3-py38',
'build-gtk3-py39',
'build-gtk3-py310',
Expand Down
6 changes: 4 additions & 2 deletions docker/build/fedora-36/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ RUN \
RUN \
# Install all available Python packages and their dev packages
dnf -y install python3 python3-tools python3-devel; \
dnf -y install python3.9
dnf -y install python3.9; \
dnf -y install python3.11; \

RUN \
# Clean up dnf caches
Expand All @@ -55,7 +56,8 @@ RUN \
cd ${HOME}; \
mkdir -p ${HOME}/venvs; \
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Add files from host into the container
COPY scripts ${HOME}/bin
Expand Down
67 changes: 67 additions & 0 deletions docker/build/fedora-37/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# The base image
FROM fedora:37

# Set environment variables
ENV DIST_NAME=fedora-37
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 \
dnf -y update; \
dnf -y group install "Development Tools"; \
dnf -y install gcc-c++ 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
dnf install -y \
freeglut-devel \
gstreamer1-devel \
gstreamer1-plugins-base-devel \
gtk3-devel \
libjpeg-turbo-devel \
libnotify-devel \
libpng-devel \
libSM-devel \
libtiff-devel \
libXtst-devel \
SDL-devel \
webkit2gtk3-devel \
which;

RUN \
# Install all available Python packages and their dev packages
dnf -y install python3 python3-tools python3-devel; \
dnf -y install python3.9; \
dnf -y install python3.10;

RUN \
# Clean up dnf caches
dnf 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; \
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Add files from host into the container
COPY scripts ${HOME}/bin

# Define default command
CMD ["/bin/bash", "-l"]

67 changes: 67 additions & 0 deletions docker/build/fedora-38/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# The base image
FROM fedora:38

# Set environment variables
ENV DIST_NAME=fedora-38
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 \
dnf -y update; \
dnf -y group install "Development Tools"; \
dnf -y install gcc-c++ 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
dnf install -y \
freeglut-devel \
gstreamer1-devel \
gstreamer1-plugins-base-devel \
gtk3-devel \
libjpeg-turbo-devel \
libnotify-devel \
libpng-devel \
libSM-devel \
libtiff-devel \
libXtst-devel \
SDL-devel \
webkit2gtk3-devel \
which;

RUN \
# Install all available Python packages and their dev packages
dnf -y install python3 python3-tools python3-devel; \
dnf -y install python3.9; \
dnf -y install python3.10;

RUN \
# Clean up dnf caches
dnf 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; \
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Add files from host into the container
COPY scripts ${HOME}/bin

# Define default command
CMD ["/bin/bash", "-l"]

4 changes: 3 additions & 1 deletion docker/build/rocky-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN \
yum -y install python3 python3-tools python3-devel; \
yum -y install python38 python38-devel; \
yum -y install python39 python39-devel; \
yum -y install python3.11 python3.11-devel; \
# Clean up the yum caches
yum clean all;

Expand All @@ -57,7 +58,8 @@ RUN \
cd ${HOME}; \
mkdir -p ${HOME}/venvs; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39;
python3.9 -m venv venvs/Py39; \
python3.11 -m venv venvs/Py311;

# Add files from host into the container
COPY scripts ${HOME}/bin
Expand Down
3 changes: 2 additions & 1 deletion docker/build/rocky-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ WORKDIR ${HOME}
RUN \
cd ${HOME}; \
mkdir -p ${HOME}/venvs; \
python3.9 -m venv venvs/Py39;
python3.9 -m venv venvs/Py39; \
python3.11 -m venv venvs/Py311;

# Add files from host into the container
COPY scripts ${HOME}/bin
Expand Down
8 changes: 3 additions & 5 deletions docker/build/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ RUN \
# Install all available Python packages and their dev packages
RUN \
if [ ${USE_DEADSNAKES} = yes ]; then add-apt-repository -y ppa:deadsnakes/ppa; apt-get update; fi; \
apt-get install -y python3.6 python3.6-dev libpython3.6-dev python3.6-venv; \
apt-get install -y python3.7 python3.7-dev libpython3.7-dev python3.7-venv; \
apt-get install -y python3.8 python3.8-dev libpython3.8-dev python3.8-venv; \
apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv; \
apt-get install -y python3.10 python3.10-dev libpython3.10-dev python3.10-venv; \
apt-get install -y python3.11 python3.11-dev libpython3.11-dev python3.11-venv; \
apt-get clean;

# Add files from host into the container
Expand All @@ -70,11 +69,10 @@ WORKDIR ${HOME}
RUN \
cd ${HOME}; \
mkdir -p ${HOME}/venvs; \
python3.6 -m venv venvs/Py36; \
python3.7 -m venv venvs/Py37; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310;
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Define default command
CMD ["/bin/bash", "-l"]
Expand Down
4 changes: 3 additions & 1 deletion docker/build/ubuntu-20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN \
apt-get install -y python3.8 python3.8-dev libpython3.8-dev python3.8-venv; \
apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv; \
apt-get install -y python3.10 python3.10-dev libpython3.10-dev python3.10-venv; \
apt-get install -y python3.10 python3.11-dev libpython3.11-dev python3.11-venv; \
apt-get clean;

# Add files from host into the container
Expand All @@ -70,7 +71,8 @@ RUN \
mkdir -p ${HOME}/venvs; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310;
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Define default command
CMD ["/bin/bash", "-l"]
Expand Down
4 changes: 3 additions & 1 deletion docker/build/ubuntu-22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN \
apt-get install -y python3.8 python3.8-dev libpython3.8-dev python3.8-venv; \
apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv; \
apt-get install -y python3.10 python3.10-dev libpython3.10-dev python3.10-venv; \
apt-get install -y python3.11 python3.11-dev libpython3.11-dev python3.11-venv; \
apt-get clean;

# Add files from host into the container
Expand All @@ -70,7 +71,8 @@ RUN \
mkdir -p ${HOME}/venvs; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310;
python3.10 -m venv venvs/Py310; \
python3.11 -m venv venvs/Py311;

# Define default command
CMD ["/bin/bash", "-l"]
Expand Down
2 changes: 2 additions & 0 deletions docker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
'fedora-31',
'fedora-32',
'fedora-33',
'fedora-35',
'fedora-36',
'centos-7',
'centos-8',
]
Expand Down

0 comments on commit a728fa1

Please sign in to comment.