2016-09-19 20:06:08 +02:00
|
|
|
# DESCRIPTION: Create SimpleScreenRecorder in a container
|
2016-09-20 00:25:05 +02:00
|
|
|
# AUTHOR: Jessie Frazelle <jess@linux.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
|
2016-10-25 22:37:56 +02:00
|
|
|
# wget https://raw.githubusercontent.com/jessfraz/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
|
2016-09-19 20:31:11 +02:00
|
|
|
FROM debian:stretch
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# 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 \
|
2015-06-07 02:48:44 +02:00
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
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
|
2016-12-28 02:04:58 +01:00
|
|
|
RUN git clone --depth 1 https://github.com/MaartenBaert/ssr.git /src
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# 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 && \
|
2016-09-19 20:06:08 +02:00
|
|
|
#sudo -u ssr
|
2015-06-05 19:24:11 +02:00
|
|
|
/src/simple-build-and-install
|
2014-10-20 12:55:10 +02:00
|
|
|
|
|
|
|
# Autorun ssr
|
|
|
|
CMD ["/usr/bin/simplescreenrecorder"]
|