-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from geoCML/adopt-xpra
Adopt xpra
- Loading branch information
Showing
73 changed files
with
48 additions
and
7,197 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
FROM accetto/ubuntu-vnc-xfce-g3:22.04 | ||
|
||
USER root | ||
COPY ./persistence-layer/ /home/headless/Persistence | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt update | ||
|
||
RUN useradd -d /home/user -m user | ||
|
||
# Install xpra | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt install -y wget gnupg xvfb x11-xserver-utils python3 python3-pip \ | ||
&& pip3 install pyinotify \ | ||
&& echo "deb [arch=amd64] https://xpra.org/ focal main" > /etc/apt/sources.list.d/xpra.list \ | ||
&& wget -q https://xpra.org/gpg.asc -O- | apt-key add - \ | ||
&& apt update \ | ||
&& apt install -y xpra --no-install-recommends --no-install-suggests | ||
|
||
# Install QGIS | ||
RUN apt install -y qgis | ||
|
||
# Install Evince PDF viewer | ||
RUN apt install -y evince | ||
# Install Ansible | ||
RUN apt install -y ansible | ||
|
||
# Copy geoCML wallpaper to backgrounds directory | ||
COPY ./build-resources/geocml-desktop/geocml-wallpaper.png /usr/share/backgrounds/geocml-wallpaper.png | ||
# Install Ansible dependencies and run through playbook | ||
COPY ./ansible-playbooks/geocml-desktop-requirements.yaml ./ansible-playbooks/geocml-desktop-playbook.yaml ./ | ||
RUN ansible-galaxy collection install ansible.posix && ansible-galaxy install -r geocml-desktop-requirements.yaml && ansible-playbook -i,localhost geocml-desktop-playbook.yaml --tags "all" && rm -f ./*.yaml | ||
|
||
######### Customize Container Here ########### | ||
######### End Customizations ########### | ||
|
||
# Remove install cache | ||
RUN apt clean autoclean && apt autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
|
||
RUN chown -R headless:headless /home/headless | ||
RUN chown -R headless:headless /dockerstartup | ||
|
||
USER headless | ||
USER user | ||
CMD ["xpra", "start", ":100", "--start-child=/usr/bin/qgis /Persistence/geocml-project.qgz", "--bind-tcp=0.0.0.0:10000", "--no-daemon", "--no-notifications", "--no-mdns", "--no-pulseaudio", "--exit-with-children"] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- # Configure xpra | ||
hosts: localhost | ||
connection: local | ||
gather_facts: yes | ||
become: yes | ||
tasks: | ||
- name: Make /run/user/0/xpra | ||
ansible.builtin.command: mkdir -p /run/user/0/xpra | ||
- name: Update xpra.conf | ||
ansible.builtin.command: sed -ie 's/^start-child/#start-child/' /etc/xpra/xpra.conf |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# Add Ansible Galaxy Packages here, role_example_hello included to prevent errors in template testing | ||
|
||
# NOTE: Uncomment the two lines below if you want to test your Ansible installation | ||
# before proceeding with the rest of the playbook. | ||
# | ||
# This is typically only necessary if you are changing the default Ansible installation | ||
# that comes with the geoCML base image. | ||
#roles: | ||
#- irixjp.role_example_hello # https://galaxy.ansible.com/irixjp/role_example_hello | ||
collections: | ||
- community.general |
Binary file not shown.
13 changes: 0 additions & 13 deletions
13
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.dockerignore
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.gitattributes
This file was deleted.
Oops, something went wrong.
94 changes: 0 additions & 94 deletions
94
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.github/workflows/deploy-readme.sh
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.github/workflows/dockerhub-autobuild.yml
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.github/workflows/dockerhub-post-push.yml
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
build-resources/geocml-desktop/ubuntu-vnc-xfce-g3/.gitignore
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.