init
This commit is contained in:
commit
e2451e0c63
6 changed files with 55 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# vim artifacts
|
||||
*.swp
|
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM archlinux:latest
|
||||
ARG TOOLS=""
|
||||
ARG UID="1000"
|
||||
ARG GID="1000"
|
||||
|
||||
# setup pacman
|
||||
USER root
|
||||
COPY etc/profile.d/devkitpro.sh /etc/profile.d
|
||||
RUN pacman-key --init
|
||||
RUN pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com
|
||||
RUN pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
|
||||
RUN pacman --noconfirm -U https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.zst
|
||||
RUN pacman-key --populate devkitpro
|
||||
COPY etc/pacman.d/devkitpro.conf /etc/pacman.d
|
||||
RUN echo Include = /etc/pacman.d/devkitpro.conf >> /etc/pacman.conf
|
||||
RUN pacman -Syu --noconfirm
|
||||
|
||||
# install tools
|
||||
RUN pacman -Sy --noconfirm $TOOLS
|
||||
|
||||
# setup environment
|
||||
RUN groupadd -g $GID devkitpro
|
||||
RUN useradd -u $UID -g $GID -MN devkitpro
|
||||
USER devkitpro
|
||||
WORKDIR /volume
|
||||
ENTRYPOINT ["tail", "-f", "/dev/null"]
|
||||
# use docker exec to access container OR
|
||||
# use docker compose to specify entrypoint
|
||||
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# devkitPro Docker Development Containers
|
||||
|
||||
|
10
build
Executable file
10
build
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
kits=(gp32-dev gp2x-dev gba-dev nds-dev 3ds-dev gamecube-dev wii-dev wiiu-dev switch-dev)
|
||||
|
||||
for kit in ${kits[@]}; do
|
||||
docker build -t devkitpro:$(echo $kit | sed "s|-dev||") --build-arg TOOLS="$kit" .
|
||||
done
|
||||
|
||||
docker build -t devkitpro:all --build-arg TOOLS="${kits[@]}" .
|
||||
|
6
etc/pacman.d/devkitpro.conf
Normal file
6
etc/pacman.d/devkitpro.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
[dkp-libs]
|
||||
Server = https://pkg.devkitpro.org/packages
|
||||
|
||||
[dkp-linux]
|
||||
Server = https://pkg.devkitpro.org/packages/linux/$arch/
|
||||
|
5
etc/profile.d/devkitpro.sh
Executable file
5
etc/profile.d/devkitpro.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
DEVKITPRO=/opt/devkitpro
|
||||
DEVKITARM=/opt/devkitpro/devkitARM
|
||||
DEVKITPPC=/opt/devkitpro/devkitPPC
|
Loading…
Add table
Reference in a new issue