Permalink
Browse files

rewrite docker script

fix
  • Loading branch information...
elephantp committed Aug 15, 2018
1 parent dbc0282 commit c05a5f196e36307f298a9e81795eb4457e301d5b
Showing with 32 additions and 22 deletions.
  1. +9 −4 Dockerfile
  2. +5 −5 README.md
  3. +18 −13 docker-build.sh
View
@@ -1,6 +1,11 @@
FROM devkitpro/devkitarm:latest
MAINTAINER jski "jski185@gmail.com"
FROM devkitpro/devkita64
MAINTAINER elelphatp "elephantp@elephantp.blog"
ADD . /
RUN dkp-pacman -Syyu --noconfirm devkitARM && \
dkp-pacman -Scc --noconfirm
ENTRYPOINT ["make"]
ENV DEVKITARM=${DEVKITPRO}/devkitARM
WORKDIR /developer
ENTRYPOINT ["make"]
View
@@ -11,7 +11,7 @@ Put `ReiNX` folder on the root of your switch's SD card and run `ReiNX.bin` with
You'll need devkitpro with devkitARM and run `make`
To compile with Docker, `chmod +x docker-build.sh` and run the shell script `./docker-build.sh`. This will compile without requiring installation of DevKit* dependencies.
To compile with Docker, `chmod +x docker-build.sh` and run the shell script `./docker-build.sh`. After that, just check `out` dir. This will compile without requiring installation of DevKit* dependencies.
**Features:**
@@ -29,11 +29,11 @@ To compile with Docker, `chmod +x docker-build.sh` and run the shell script `./d
[HERE](https://gbatemp.net/threads/official-reinx-thread.512203/)
**Credits:**
Naehrwert for hardware init code and generally being helpful!
CTCaer and st4rk for their contribution to the hardware code aswell!
SciresM for sysmodules!
The community for your support!
View
@@ -1,16 +1,21 @@
#!/usr/bin/env bash
ECHO ""
ECHO "Emptying out /build and /out folders..."
ECHO ""
rm -rf ./build
rm -rf ./out
echo "Checking reinx-builder image..."
ECHO ""
ECHO "Building docker image locally..."
ECHO ""
docker build . -t reinx-builder:latest
IMAGE=`docker image ls|grep reinx-builder -c`
if [[ "$IMAGE" == 1 ]]; then
echo "Reinx-builder image is exist"
else
echo ""
echo "Building docker image locally..."
echo ""
docker build . -t reinx-builder
fi
ECHO ""
ECHO "Running image and generating build..."
ECHO ""
docker run -v $(pwd)/build:/build -v $(pwd)/out:/out reinx-builder:latest
echo "Checking container...."
CONTAINER=`docker ps -a|grep reinx-builder -c`
echo "Building..."
if [[ "$CONTAINER" == 1 ]]; then
docker start -a reinx-builder
else
docker run -a stdout -a stderr --name reinx-builder -v $(pwd):/developer reinx-builder
fi

0 comments on commit c05a5f1

Please sign in to comment.