Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Dockerfile * Requested changes; moved dep install before source copy for fewer layers * Added Cython installation to setup.py * Add dockerfile for alpine * Added Python version number to Dockerfiles * Working on making tests pass * use the docker cache, it makes things faster * Added back requirements.txt and cleaned up Dockerfiles * Use absolute paths for dockerfile destination paths * Fixed my bad changes to the Dockerfiles * Some fixes and a bunch of Dockerfiles. Still WIP * PyPy docker builds passes tests. Ubuntu PyPy is WIP * Improved Dockerfiles for ubuntu and more tests pass * Deployed fix for rewind on Linux and possibly Mac * All tests passes now * Added dockerignore to minimize build context * Reverted .tar.gz changes and improved .dockerignore * Removed pyboy.tar.gz from Makefile * Changed ADD to COPY * adjusted and tested .dockerignore also removed debug stuff from Dockerfile.ubuntu1804 and added absolute path to volume mounts for Makefile docker test recipes * Moved dockerfiles * Added more excludes to dockerignore * Update dockerfile paths in Makefile Co-authored-by: Alexander Terry <mralext20@users.noreply.github.com> Co-authored-by: Kristian Sims <kristian.sims@gmail.com>
- Loading branch information
1 parent
7eb0dbc
commit 06356b1
Showing
20 changed files
with
308 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
* | ||
!requirements.txt | ||
!pyboy/ | ||
!setup.py | ||
!tests/ | ||
tests/BlarggROMs | ||
!examples/ | ||
!README.md | ||
!README/ | ||
**/*.pyo | ||
**/*.pyc | ||
**/*.pyd | ||
**/*.so | ||
**/*.c | ||
**/*.h | ||
**/*.dll | ||
**/*.lib | ||
**/*.exp | ||
**/*.html | ||
**/*.gb | ||
**/*.gbc | ||
**/*.bin | ||
**/*.rom | ||
!pyboy/core/bootrom.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,5 @@ bootrom/bootrom.sym | |
bootrom/logo.asm | ||
bootrom/pyboy.png | ||
bootrom/PYBOY_ROM.bin | ||
|
||
pyboy.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3-alpine | ||
|
||
RUN apk add \ | ||
build-base \ | ||
jpeg-dev \ | ||
sdl2 \ | ||
sdl2-dev \ | ||
zlib-dev | ||
|
||
COPY requirements.txt / | ||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pip install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3-buster | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libsdl2-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt / | ||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pip install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM pypy:3 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libsdl2-dev \ | ||
libtiff5-dev \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt / | ||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pip install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM pypy:3-slim | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libsdl2-dev \ | ||
libtiff5-dev \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt / | ||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pip install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:18.04 | ||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
libsdl2-dev \ | ||
libtiff5-dev \ | ||
libjpeg8-dev \ | ||
zlib1g-dev \ | ||
curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG pypy_version=pypy3.6-v7.3.0-linux64 | ||
RUN curl -OL "https://bitbucket.org/pypy/pypy/downloads/$pypy_version.tar.bz2" && tar -xvf "$pypy_version.tar.bz2" | ||
ENV PATH="/$pypy_version/bin:${PATH}" | ||
|
||
COPY requirements.txt / | ||
RUN pypy3 -m ensurepip && pypy3 -m pip install --upgrade pip && pypy3 -m pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pypy3 -m pip install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libsdl2-dev \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt / | ||
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r requirements.txt | ||
|
||
COPY . /pyboy | ||
WORKDIR /pyboy | ||
|
||
RUN pip3 install . | ||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cython; platform_python_implementation == 'CPython' | ||
numpy | ||
pillow | ||
pysdl2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.