forked from jessfraz/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jessica Frazelle <[email protected]>
- Loading branch information
Showing
4 changed files
with
60 additions
and
9 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,38 @@ | ||
# NES emulator in a container | ||
# | ||
# docker run --rm -d \ | ||
# --device /dev/snd \ | ||
# -v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
# -e DISPLAY=unix$DISPLAY \ | ||
# --device /dev/dri \ | ||
# jess/nes /games/zelda.rom | ||
# | ||
FROM debian:sid | ||
MAINTAINER Jessica Frazelle <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
binutils \ | ||
ca-certificates \ | ||
gcc \ | ||
git \ | ||
golang \ | ||
libgl1-mesa-dev \ | ||
libgl1-mesa-dri \ | ||
libxcursor-dev \ | ||
libxi-dev \ | ||
libxinerama-dev \ | ||
libxrandr-dev \ | ||
mercurial \ | ||
portaudio19-dev \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& ldconfig | ||
|
||
ENV GOPATH /go | ||
ENV PATH /go/bin:$PATH | ||
|
||
RUN go get github.com/fogleman/nes | ||
|
||
COPY games /games | ||
|
||
ENTRYPOINT [ "nes" ] |
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -12,28 +12,41 @@ | |
# # Build termboy image | ||
# docker build -t termboy . | ||
# | ||
# docker run -it termboy | ||
# docker run -it \ | ||
# --device /dev/snd \ | ||
# termboy | ||
# | ||
|
||
# Base docker image | ||
FROM debian:jessie | ||
MAINTAINER Jessica Frazelle <[email protected]> | ||
|
||
ENV TERM linux | ||
ENV HOME /root | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
COPY termboy-go /usr/bin/termboy-go | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates \ | ||
console-setup \ | ||
console-setup-linux \ | ||
g++ \ | ||
git \ | ||
kbd \ | ||
libasound2-dev \ | ||
libncurses5-dev \ | ||
libncursesw5-dev \ | ||
make \ | ||
sudo \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p $HOME/.config/termboy | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git clone https://github.com/dobyrch/termboy --depth 1 /src \ | ||
&& cd /src \ | ||
&& make \ | ||
&& make install || true | ||
|
||
|
||
# add games | ||
COPY games $HOME/games | ||
COPY games /games | ||
|
||
# Autorun termboy | ||
ENTRYPOINT ["/usr/bin/termboy-go"] | ||
ENTRYPOINT ["/usr/bin/termboy"] |