Skip to content

Instantly share code, notes, and snippets.

@AmarOk1412
Created December 15, 2017 20:28
Show Gist options
  • Save AmarOk1412/dee6a8e2c05764d92115cea004e0928b to your computer and use it in GitHub Desktop.
Save AmarOk1412/dee6a8e2c05764d92115cea004e0928b to your computer and use it in GitHub Desktop.
Ring Dockerfile for ubuntu 17.10
# docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --net host -it --privileged --device /dev/video0:/dev/video0 ring
FROM ubuntu:17.10
LABEL maintainer="Sébastien Blin <sebastien.blin@savoirfairelinux.com>"
# Install system tools needed
RUN apt-get update -y \
&& apt-get install git python3 -y
# Clone ring-project
RUN git clone https://gerrit-ring.savoirfairelinux.com/ring-project
# Build it
WORKDIR ring-project
RUN ./make-ring.py --init
RUN ./make-ring.py --dependencies
RUN ./make-ring.py --install
# To communicate with the dht
EXPOSE 4222
RUN apt-get install dbus-x11 -y
RUN apt-get install mplayer ffmpeg v4l-utils -y
RUN adduser root video
#CMD ["./daemon/bin/dring", "-pcd"]
CMD ["/bin/bash"]
# mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment