forked from wxWidgets/Phoenix
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
155 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
'fedora-31', | ||
'fedora-32', | ||
'fedora-33', | ||
'fedora-35', | ||
'fedora-36', | ||
'centos-7', | ||
'centos-8', | ||
] | ||
|