summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Hampton <roastveg@hotmail.co.uk>2020-06-18 00:55:16 +0100
committerLouis Hampton <roastveg@hotmail.co.uk>2020-06-18 00:55:16 +0100
commite4dde9edf85100353b5fa6fb9b757eaa43e2de42 (patch)
tree3fb9483beae897562ebdbc935c68907c432f2691
parentb4d34b46564d50e1ee4eafc7814cc00e9913552b (diff)
Added Dockerfile and build script
-rw-r--r--Dockerfile10
-rw-r--r--arm9/Makefile4
-rwxr-xr-xbuild_docker.sh11
3 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..eb664074
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM i386/alpine
+
+RUN apk update
+RUN apk add --no-cache build-base libpng-dev wine ncurses freetype
+RUN apk add binutils-arm-none-eabi --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
+
+ENV BUSYBOX 1
+WORKDIR /app
+
+CMD ["/bin/sh"] \ No newline at end of file
diff --git a/arm9/Makefile b/arm9/Makefile
index 25999e21..71d2ef93 100644
--- a/arm9/Makefile
+++ b/arm9/Makefile
@@ -192,7 +192,11 @@ LDFLAGS = -nodead -w off -proc v5te -interworking -map closure,unused -symtab so
####################### Other Tools #########################
# DS TOOLS
+ifndef BUSYBOX
SHA1SUM = sha1sum --quiet
+else
+SHA1SUM = sha1sum
+endif
JSONPROC = $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
GFX = $(TOOLS_DIR)/nitrogfx/nitrogfx$(EXE)
SCANINC = $(TOOLS_DIR)/scaninc/scaninc$(EXE)
diff --git a/build_docker.sh b/build_docker.sh
new file mode 100755
index 00000000..5f72c1fb
--- /dev/null
+++ b/build_docker.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+ver="0.1"
+
+docker inspect pokediamond:$ver > /dev/null
+if [ $? = 0 ]; then
+ echo "Not rebuilding image since image exists";
+else
+ docker build -t pokediamond:$ver .
+fi
+docker run --network=none -it -v $(pwd):/app pokediamond:$ver