Skip to content

Commit

Permalink
Use devkitpro ppc docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacoby6000 committed Aug 1, 2024
1 parent a988b90 commit 6a0b776
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,11 @@
# { "features": { "buildkit": true } }
# instead of the environment variable

# Build a Debian base container
FROM debian:buster as usbloader
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
RUN apt-get update -y && apt-get install -y \
xz-utils make git zip

ADD https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r41-2-linux_x86_64.pkg.tar.xz /
ADD https://wii.leseratte10.de/devkitPro/file.php/libogc-2.3.1-1-any.pkg.tar.xz /
ADD https://wii.leseratte10.de/devkitPro/file.php/devkitppc-rules-1.1.1-1-any.pkg.tar.xz /
ADD https://wii.leseratte10.de/devkitPro/file.php/general-tools-1.2.0-2-linux_x86_64.pkg.tar.xz /
ADD https://wii.leseratte10.de/devkitPro/file.php/gamecube-tools-1.0.3-1-linux_x86_64.pkg.tar.xz /


RUN tar -xf /devkitPPC-r41-2-linux_x86_64.pkg.tar.xz opt/devkitpro/devkitPPC --strip-components=1 && \
tar -xf /libogc-2.3.1-1-any.pkg.tar.xz opt/devkitpro/libogc --strip-components=1 && \
tar -xf /devkitppc-rules-1.1.1-1-any.pkg.tar.xz opt/devkitpro/devkitPPC --strip-components=1 && \
tar -C /usr/local/bin -xf /general-tools-1.2.0-2-linux_x86_64.pkg.tar.xz opt/devkitpro/tools/bin/bin2s --strip-components=4 && \
tar -C /usr/local/bin -xf /gamecube-tools-1.0.3-1-linux_x86_64.pkg.tar.xz opt/devkitpro/tools/bin/elf2dol --strip-components=4 && \
mkdir /projectroot

ENV DEVKITPRO=/devkitpro
ENV DEVKITPPC=/devkitpro/devkitPPC
FROM devkitpro/devkitppc:20240702 as usbloader
RUN apt-get update -y && \
apt-get install -y xz-utils make git zip

RUN mkdir /projectroot

# Now we have a container that has the dev environment set up.
# Copy current folder into container, then compile
Expand Down

0 comments on commit 6a0b776

Please sign in to comment.