x2go Demo (2020-10-06)
Files
Downloads/base/Dockerfile
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y x2goserver openssh-server
RUN useradd -m -U user
RUN mkdir /var/run/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]
Downloads/run.sh
#!/bin/bash
sh -c 'cd base; docker build -t local/x2godocker/base .'
sh -c 'cd daliclock; docker build -t local/x2godocker/daliclock .' &
sh -c 'cd matrix; docker build -t local/x2godocker/matrix .' &
sh -c 'cd firefox; docker build -t local/x2godocker/firefox .' &
wait
docker-compose up -d --force-recreate
x2goclient --session=Matrix --hide --close-disconnect
x2goclient --session=DaliClock --hide --close-disconnect
x2goclient --session=Firefox --hide --close-disconnect
wait
x2goclient
Downloads/matrix/Dockerfile
FROM local/x2godocker/base
RUN apt-get install -y xscreensaver-data-extra
COPY ./matrix.desktop /usr/share/applications
Downloads/docker-compose.yml
version: "3.4"
services:
matrix:
image: local/x2godocker/matrix
ports:
- "2000:22"
volumes:
- "/home/debian/.ssh/id_rsa.pub:/home/user/.ssh/authorized_keys:ro"
firefox:
image: local/x2godocker/firefox
ports:
- "2001:22"
volumes:
- "/home/debian/.ssh/id_rsa.pub:/home/user/.ssh/authorized_keys:ro"
daliclock:
image: local/x2godocker/daliclock
ports:
- "2002:22"
volumes:
- "/home/debian/.ssh/id_rsa.pub:/home/user/.ssh/authorized_keys:ro"
Downloads/daliclock/Dockerfile
FROM local/x2godocker/base
RUN apt-get install -y xdaliclock
Downloads/firefox/Dockerfile
FROM local/x2godocker/base
RUN apt-get install -y firefox