Skip to content

Instantly share code, notes, and snippets.

@clux
Created November 6, 2015 20:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clux/c3a70acb59baaba6ee13 to your computer and use it in GitHub Desktop.
Save clux/c3a70acb59baaba6ee13 to your computer and use it in GitHub Desktop.
FROM debian:jessie
RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
binutils-dev \
libmad0-dev \
libgtk2.0-dev \
libasound-dev \
libjack-dev \
libc6-dev \
libogg-dev \
libvorbis-dev \
libxtst-dev \
libxrandr-dev \
libglew-dev \
libav-tools \
&& rm -rf /var/lib/apt/lists/*
ENV STEPMANIA_VERSION 5.0.10
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/stepmania
RUN mkdir -p /usr/local/stepmania \
&& curl -sSL https://github.com/stepmania/stepmania/releases/download/v${STEPMANIA_VERSION}/StepMania-${STEPMANIA_VERSION}-Linux.tar.gz | tar -v -C /usr/local/stepmania -xz --strip-components 2
ENTRYPOINT ["stepmania"]
@clux
Copy link
Author

clux commented Nov 6, 2015

stepmania() {
  docker run -it \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$DISPLAY \
    --device /dev/snd \
    stepmania
}

@tonylampada
Copy link

Thanks for this. I tried using this dockerfile to get stepmania running on a raspberry pi, but no luck

pi@raspberrypi:~/stepmania $ stepmania() {
>   sudo docker run -it \
>     -v /tmp/.X11-unix:/tmp/.X11-unix \
>     -e DISPLAY=$DISPLAY \
>     --device /dev/snd \
>     stepmania
> }
pi@raspberrypi:~/stepmania $ stepmania 
standard_init_linux.go:195: exec user process caused "exec format error"

If by any chance you would like to build a stepmania Dockerfile for raspberry I would be happy to test it. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment