1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(docker): Add Dockerfile for debian and helper scripts

This commit is contained in:
Diadlo 2018-06-27 09:53:48 +03:00
parent 0e8dd81daf
commit 7f64558b12
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
3 changed files with 58 additions and 0 deletions

46
docker/Dockerfile.debian Normal file
View File

@ -0,0 +1,46 @@
FROM debian:stretch
RUN apt-get update && \
apt-get -y --force-yes install \
automake \
autotools-dev \
build-essential \
check \
checkinstall \
cmake \
ffmpeg \
git \
libavcodec-dev \
libavdevice-dev \
libexif-dev \
libgdk-pixbuf2.0-dev \
libgtk2.0-dev \
libopenal-dev \
libopus-dev \
libqrencode-dev \
libqt5opengl5-dev \
libqt5svg5-dev \
libsodium-dev \
libsqlcipher-dev \
libtool \
libvpx-dev \
libxss-dev \
pkg-config \
qrencode \
qt5-default \
qttools5-dev \
qttools5-dev-tools \
yasm
RUN git clone https://github.com/toktok/c-toxcore.git /toxcore
WORKDIR /toxcore
RUN git checkout v0.2.2 && \
cmake . && \
cmake --build . && \
make install && \
echo '/usr/local/lib/' >> /etc/ld.so.conf.d/locallib.conf && \
ldconfig
COPY . /qtox
WORKDIR /qtox
RUN cmake . && cmake --build .

5
docker/build-debian.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")/.."
docker build . -f docker/Dockerfile.debian -t qtox
cd -

7
docker/start-qtox.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -ti --rm -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTH qtox ./qtox