Skip to content

Commit

Permalink
add nes
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jun 21, 2015
1 parent 324a52f commit 8aaa4f9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
38 changes: 38 additions & 0 deletions nes/Dockerfile
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 added nes/games/supermariobros.rom
Binary file not shown.
Binary file added nes/games/zelda.rom
Binary file not shown.
31 changes: 22 additions & 9 deletions termboy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 8aaa4f9

Please sign in to comment.