Skip to content

Instantly share code, notes, and snippets.

@dpq
Created June 12, 2019 08:49
Show Gist options
  • Save dpq/46b4f3d9f34c7aec3a8eb0d7f0b42bb4 to your computer and use it in GitHub Desktop.
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)
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
@dpq
Copy link
Author

dpq commented Jun 12, 2019

To run, execute docker run --rm -e DISPLAY=$DISPLAY --net=host teradici in the same directory where you have placed this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment