2015-06-05 19:24:11 +02:00
|
|
|
# VERSION: 0.1
|
|
|
|
# DESCRIPTION: Create SimpleScreenRecorder in a container
|
|
|
|
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
2014-10-20 12:55:10 +02:00
|
|
|
# COMMENTS:
|
2015-06-05 19:24:11 +02:00
|
|
|
# This file describes how to build SimpleScreenRecoder
|
|
|
|
# in a container with all dependencies installed.
|
|
|
|
# Tested on Debian Jessie.
|
2014-10-20 12:55:10 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Download ssr Dockerfile
|
|
|
|
# wget http://raw.githubusercontent.com/jfrazelle/dockerfiles/master/ssr/Dockerfile
|
2014-10-20 12:55:10 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build ssr image
|
|
|
|
# docker build -t ssr .
|
2014-10-20 12:55:10 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY ssr
|
2014-10-20 12:55:10 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# Base docker image
|
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
git \
|
|
|
|
pkg-config \
|
|
|
|
qt4-qmake \
|
|
|
|
libqt4-dev \
|
|
|
|
libavformat-dev \
|
|
|
|
libavcodec-dev \
|
|
|
|
libavutil-dev \
|
|
|
|
libswscale-dev \
|
|
|
|
libasound2-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
libjack-jackd2-dev \
|
|
|
|
libgl1-mesa-dev \
|
|
|
|
libglu1-mesa-dev \
|
|
|
|
libx11-dev \
|
|
|
|
libxfixes-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxi-dev \
|
|
|
|
g++-multilib \
|
|
|
|
libx11-6 \
|
|
|
|
libxext6 \
|
|
|
|
libxfixes3 \
|
|
|
|
libxfixes3:i386 \
|
|
|
|
libglu1-mesa:i386 \
|
|
|
|
sudo \
|
|
|
|
--no-install-recommends
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# make adjustments
|
|
|
|
RUN cd /usr/lib/i386-linux-gnu && \
|
2015-06-05 19:24:11 +02:00
|
|
|
ln -s libGL.so.1 libGL.so && \
|
|
|
|
ln -s libGLU.so.1 libGLU.so && \
|
|
|
|
ln -s libX11.so.6 libX11.so && \
|
|
|
|
ln -s libXext.so.6 libXext.so && \
|
|
|
|
ln -s libXfixes.so.3 libXfixes.so && \
|
|
|
|
ldconfig
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# add user
|
|
|
|
#RUN adduser --system --home=/src --shell=/bin/sh --no-create-home \
|
|
|
|
# --group ssr
|
|
|
|
|
|
|
|
# clone source
|
|
|
|
RUN git clone https://github.com/MaartenBaert/ssr.git /src
|
|
|
|
|
|
|
|
# install
|
|
|
|
#RUN echo "ssr ALL = NOPASSWD: /src/simple-build-and-install" >> /etc/sudoers
|
|
|
|
RUN sed -i".bak" '10,13d' /src/simple-build-and-install
|
|
|
|
RUN sed -i".bak" '13,14d' /src/postinstall
|
|
|
|
RUN cd /src && \
|
2015-06-05 19:24:11 +02:00
|
|
|
#chown -R ssr /src && \
|
|
|
|
#sudo -u ssr
|
|
|
|
/src/simple-build-and-install
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# Autorun ssr
|
|
|
|
CMD ["/usr/bin/simplescreenrecorder"]
|