2025-01-05 20:53:27 -06:00
|
|
|
FROM fedora:41
|
2017-04-14 04:08:13 -05:00
|
|
|
|
2018-04-13 18:31:43 -05:00
|
|
|
RUN dnf update -y
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Install gosu
|
|
|
|
|
2021-12-17 20:57:00 -06:00
|
|
|
RUN dnf install -y curl
|
|
|
|
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64"
|
|
|
|
RUN chmod +x /usr/local/bin/gosu
|
2018-04-13 18:31:43 -05:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Install dev tools
|
|
|
|
|
2022-11-30 01:47:33 -06:00
|
|
|
RUN dnf install -y clang \
|
|
|
|
llvm \
|
|
|
|
libasan \
|
|
|
|
mingw64-gcc-c++ \
|
|
|
|
cmake \
|
|
|
|
make \
|
|
|
|
git \
|
|
|
|
vim \
|
|
|
|
sudo \
|
|
|
|
fuse-devel \
|
|
|
|
findutils \
|
|
|
|
ninja-build \
|
|
|
|
libcxx-devel libcxxabi-devel \
|
|
|
|
unzip \
|
|
|
|
ccache \
|
|
|
|
pacman \
|
|
|
|
python3-pip \
|
|
|
|
libglvnd-devel \
|
|
|
|
gtk3-devel
|
2018-04-13 18:31:43 -05:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Install devkitARM
|
|
|
|
|
2022-01-13 02:06:16 -06:00
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com
|
|
|
|
RUN pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
|
|
|
|
RUN curl -o devkitpro-keyring.pkg.tar.xz https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz
|
|
|
|
RUN pacman -Syu --noconfirm
|
|
|
|
RUN pacman -U --noconfirm devkitpro-keyring.pkg.tar.xz
|
|
|
|
ADD devenv/pacman.conf /etc/pacman.conf
|
|
|
|
RUN pacman -Syu --noconfirm gba-dev
|
|
|
|
ENV DEVKITPRO /opt/devkitpro
|
|
|
|
ENV DEVKITARM /opt/devkitpro/devkitARM
|
2018-04-13 18:31:43 -05:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Setup sudoers
|
|
|
|
|
|
|
|
ADD devenv/sudoers /etc/sudoers
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Setup working directory
|
|
|
|
|
|
|
|
RUN mkdir /usr/src/project
|
|
|
|
WORKDIR /usr/src/project
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Setup entrypoint
|
|
|
|
|
|
|
|
ADD devenv/entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2018-04-13 00:48:14 -05:00
|
|
|
|
2018-04-13 17:42:20 -05:00
|
|
|
ENV CC clang
|
|
|
|
ENV CXX clang++
|
2020-08-28 19:14:35 -05:00
|
|
|
ENV VCPKG_DIR_BASE /var/vcpkg/
|