Skip to content

Commit

Permalink
Basic remote desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed Dec 11, 2024
1 parent a0fdeef commit 35c8fdd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ jobs:
run: podman build -t ghcr.io/gbraad-devenv/fedora/dotfiles:41 -f containers/Containerfile-dotfiles .
- name: Run podman build - systemd
run: podman build -t ghcr.io/gbraad-devenv/fedora/systemd:41 -f containers/Containerfile-systemd .
- name: Run podman build - rdesktop
run: podman build -t ghcr.io/gbraad-devenv/fedora/rdesktop:41 -f containers/Containerfile-rdesktop .
- name: Push image to ghcr.io - base
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/base:41
- name: Push image to ghcr.io - dotfiles
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/dotfiles:41
- name: Push image to ghcr.io - systemd
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/systemd:41
- name: Push image to ghcr.io - rdesktop
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/rdesktop:41

2 changes: 1 addition & 1 deletion containers/Containerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN dnf config-manager addrepo --from-repofile=https://pkgs.tailscale.com/stable
COPY scripts/tailscaled /etc/init.d/tailscaled

RUN dnf install -y \
zsh mc vim tmux screen links lynx z stow \
zsh mc vim tmux screen links lynx z stow wget \
&& dnf clean all \
&& rm -rf /var/cache/yum

Expand Down
20 changes: 19 additions & 1 deletion containers/Containerfile-rdesktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/base:${BASE_VERSION}
FROM ghcr.io/gbraad-devenv/fedora/systemd:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

RUN dnf install -y https://github.com/spotsnel/AltRPMS-KasmVNC/releases/download/1.3.3/kasmvncserver-1.3.3-1.fc41.x86_64.rpm \
&& dnf clean all \
&& rm -rf /var/cache/yum \
&& usermod -a -G kasmvnc-cert gbraad

RUN sed -i 's/^FLAGS=".*"/FLAGS="--tun=userspace-networking"/' /etc/default/tailscaled

USER gbraad

RUN mkdir -p ~/.vnc \
&& echo '#!/bin/sh' > ~/.vnc/xstartup \
&& echo 'i3 &' >> ~/.vnc/xstartup \
&& chmod +x ~/.vnc/xstartup

# systemd is already set up in systemd image; make sure to use root
USER root
#ENTRYPOINT ["/sbin/init"]

0 comments on commit 35c8fdd

Please sign in to comment.