├── ps3dev-docker.sh ├── Dockerfile └── readme.txt /ps3dev-docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ ! -z "$*" ]; then 4 | docker run -v `pwd`:/build ps3dev-docker $* 5 | fi 6 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:12-slim 2 | MAINTAINER Naomi Peori 3 | 4 | ENV PS3DEV /usr/local/ps3dev 5 | ENV PSL1GHT ${PS3DEV} 6 | ENV PATH ${PATH}:${PS3DEV}/bin:${PS3DEV}/ppu/bin:${PS3DEV}/spu/bin 7 | 8 | RUN \ 9 | apt-get -y update && \ 10 | apt-get -y install autoconf bison build-essential flex git libelf-dev libgmp3-dev libncurses5-dev libssl-dev libtool-bin pkg-config python-dev-is-python3 texinfo wget zlib1g-dev && \ 11 | apt-get -y clean autoclean autoremove && \ 12 | rm -rf /var/lib/{apt,dpkg,cache,log}/ 13 | 14 | RUN \ 15 | git clone https://github.com/ps3dev/ps3toolchain.git && \ 16 | cd ps3toolchain && \ 17 | ./toolchain.sh && \ 18 | cd .. && \ 19 | rm -Rf ps3toolchain 20 | 21 | WORKDIR /build 22 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | ==================== 2 | What does this do? 3 | ==================== 4 | 5 | This program will automatically build a docker image with the ps3dev 6 | toolchain ready to be used for homebrew development. 7 | 8 | ==================== 9 | How do I build it? 10 | ==================== 11 | 12 | Build the image: 13 | 14 | docker build -t ps3dev-docker . 15 | 16 | Copy the helper script: 17 | 18 | cp ps3dev-docker.sh /usr/local/bin 19 | 20 | ================== 21 | How do I use it? 22 | ================== 23 | 24 | Use the helper script to run 'make' on the current directory: 25 | 26 | ps3dev-docker.sh make 27 | 28 | Or, manually run 'make' on the current directory: 29 | 30 | docker run -v `pwd`:/build ps3dev-docker make 31 | 32 | ============================ 33 | How do I save and load it? 34 | ============================ 35 | 36 | Save the image: 37 | 38 | docker save ps3dev-docker | bzip2 > ps3dev-docker.tar.bz2 39 | 40 | Load the image: 41 | 42 | docker load < bzip2 -dc ps3dev-docker.tar.bz2 43 | --------------------------------------------------------------------------------