-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (30 loc) · 1.54 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:18.04
ARG username
ARG uid
ARG gid
# Use the following two lines to install the Teradici repository package
RUN apt-get update && apt-get install -y wget
RUN wget -O teradici-repo-latest.deb https://downloads.teradici.com/ubuntu/teradici-repo-bionic-latest.deb
RUN apt install ./teradici-repo-latest.deb && rm -f ./teradici-repo-latest.deb
# Uncomment the following line to install Beta client builds from the internal repository
#RUN echo "deb [arch=amd64] https://downloads.teradici.com/ubuntu bionic-beta non-free" > /etc/apt/sources.list.d/pcoip.list
# Install apt-transport-https to support the client installation
RUN apt-get update && apt-get install -y apt-transport-https
# Install the client application
RUN apt-get install -y pcoip-client
# Setup a functional user within the docker container with the same permissions as your local user.
# Replace 1000 with your user / group id
# Replace myuser with your local username
RUN mkdir -p /etc/sudoers.d/ && \
mkdir -p /home/${username} && \
echo "${username}:x:${uid}:${gid}:${username},,,:/home/${username}:/bin/bash" >> /etc/passwd && \
echo "${username}:x:${uid}:" >> /etc/group && \
echo "${username} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username} && \
chown ${uid}:${gid} -R /home/${username}
# Set some environment variables for the current user
USER ${username}
ENV HOME /home/${username}
# Set the path for QT to find the keyboard context
ENV QT_XKB_CONFIG_ROOT /user/share/X11/xkb
ENTRYPOINT exec pcoip-client