aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 9bbb326b64297b0a6ef5f93f9d1407f7c229ebcb (plain)
  1. ## re-build:
  2. # docker tag local/voctomix:latest local/voctomix:old; docker build -t local/voctomix . && docker rmi local/voctomix:old
  3. ## build:
  4. # docker build -t bjoernr/voctomix .
  5. ## run:
  6. # docker run -it --rm bjoernr/voctocore help
  7. ## core:
  8. # docker run -it --rm -v /some/dir:/video
  9. # -p 9999:9999 -p 10000:10000 -p 10001:10001 -p 10002:10002 -p 11000:11000 -p 12000:12000 \
  10. # -p 13000:13000 -p 13001:13001 -p 13002:13002 -p 14000:14000 -p 15000:15000 -p 16000:16000 \
  11. # -p 17000:17000 -p 17001:17001 -p 17002:17002 -p 18000:18000 --name=voctocore bjoernr/voctomix core
  12. ## gui
  13. ## gui will connect to "corehost": corehost is aliased to container "voctocore"
  14. # docker run -it --rm --env=gid=$(id -g) --env=uid=$(id -u) --env=DISPLAY=$DISPLAY --link=voctocore:corehost \
  15. # -v /tmp/.X11-unix:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/. bjoernr/voctomix gui
  16. ## scripts
  17. # docker run -it --rm bjoernr/voctomix --link=voctocore:corehost bjoernr/voctomix gstreamer/source-videotestsrc-as-background-loop.sh
  18. FROM ubuntu:wily
  19. MAINTAINER Bjoern Riemer <bjoern.riemer@web.de>
  20. ENV DEBIAN_FRONTEND noninteractive
  21. ENV uid 1000
  22. ENV gid 1000
  23. RUN useradd -m voc
  24. RUN apt-get update \
  25. && apt-get install -y --no-install-recommends \
  26. gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
  27. gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer1.0-0 python3 python3-gi gir1.2-gstreamer-1.0 \
  28. && apt-get install -y git wget \
  29. && apt-get clean
  30. # stuff for the GUI
  31. RUN apt-get update \
  32. && apt-get install -y gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 \
  33. ffmpeg \
  34. && apt-get clean
  35. RUN wget -q https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64 -O /bin/gosu && chmod +x /bin/gosu
  36. #RUN cd /opt && git clone https://github.com/voc/voctomix.git
  37. RUN mkdir -p /opt/voctomix
  38. EXPOSE 9998 9999 10000 10001 10002 11000 12000 13000 13001 13002 14000 15000 16000 17000 17001 17002 18000
  39. VOLUME /video
  40. WORKDIR /opt/voctomix
  41. COPY . /opt/voctomix/
  42. RUN sed -i 's/localhost/corehost/g' voctogui/default-config.ini \
  43. && find /opt/voctomix/example-scripts/ -type f -exec sed -i 's/localhost/corehost/g' {} \;
  44. ENTRYPOINT ["/opt/voctomix/docker-ep.sh"]
  45. CMD ["help"]