Created
June 12, 2019 08:49
-
-
Save dpq/46b4f3d9f34c7aec3a8eb0d7f0b42bb4 to your computer and use it in GitHub Desktop.
How to run Teredici inside Docker (useful for Debian, CentOS and other distros)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt-key adv --keyserver pool.sks-keyservers.net --recv-key 67D7ADA8 | |
RUN apt-get update && apt-get install -y wget | |
RUN apt-get install -y apt-transport-https ca-certificates | |
RUN wget -O /etc/apt/sources.list.d/pcoip.list https://downloads.teradici.com/ubuntu/pcoip-dev.repo | |
RUN apt-get update | |
RUN apt-get install -y pcoip-client libqt5x11extras5 strace | |
RUN export uid=1000 gid=1000 && \ | |
mkdir -p /etc/sudoers.d/ && \ | |
mkdir -p /home/user && \ | |
echo "user:x:${uid}:${gid}:user,,,:/home/user:/bin/bash" >> /etc/passwd && \ | |
echo "user:x:${uid}:" >> /etc/group && \ | |
echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user && \ | |
chmod 0440 /etc/sudoers.d/user && \ | |
chown ${uid}:${gid} -R /home/user && \ | |
ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms /usr/libexec/pcoip-client/platforms | |
ENV HOME /home/user | |
VOLUME /tmp/.X11-unix:/tmp/.X11-unix | |
VOLUME $(pwd)/.config/:/home/user/.config/Teradici | |
CMD pcoip-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run, execute
docker run --rm -e DISPLAY=$DISPLAY --net=host teradici
in the same directory where you have placed this file.