Added Dockerfile and build script

This commit is contained in:
Louis Hampton
2020-06-18 00:55:16 +01:00
parent b4d34b4656
commit e4dde9edf8
3 changed files with 25 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -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"]

View File

@@ -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)

11
build_docker.sh Executable file
View File

@@ -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