From b055ea574d9324bc39327a12a9d7976d7b0f13c4 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Fri, 25 Sep 2020 17:12:08 +1000 Subject: [PATCH 01/18] user --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 99721d6..6842144 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -426,9 +426,9 @@ WORKDIR $HOME ARG DOTFILES_CACHEBUST RUN DOTFILES_CACHEBUST=$DOTFILES_CACHEBUST echo "Building from dotfiles..." -# Clone user dotfiles -RUN vcsh clone https://github.com/$DESKTOP_ENVIRONMENT_USER/dotfiles.git && \ - $HOME/.dotfiles-bootstrap.sh +# Clone user dotfiles or fallback to sabrehagen dotfiles +RUN vcsh clone https://github.com/$DESKTOP_ENVIRONMENT_USER/dotfiles.git || \ + vcsh clone https://github.com/sabrehagen/dotfiles.git && $HOME/.dotfiles-bootstrap.sh # Record container build information ARG DESKTOP_CONTAINER_GIT_SHA From 2026bc5b21d45fc9df199be4ad56afee07e9c61f Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Mon, 28 Sep 2020 07:19:23 +1000 Subject: [PATCH 02/18] no-wal --- docker/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6842144..9040187 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -343,9 +343,7 @@ RUN wget -O code.deb -nv https://go.microsoft.com/fwlink/?LinkID=760868 && \ rm code.deb && \ apt-get install -qq libicu[0-9][0-9] libkrb5-3 zlib1g libsecret-1-0 desktop-file-utils x11-utils && \ wget -O /usr/local/bin/shfmt -nv https://github.com/mvdan/sh/releases/download/v2.6.3/shfmt_v2.6.3_linux_amd64 && \ - chmod +x /usr/local/bin/shfmt && \ - git clone https://github.com/Bluedrack28/vscode-wal.git ~/.vscode/extensions/vscode-wal && \ - cd ~/.vscode/extensions/vscode-wal && ./script.sh + chmod +x /usr/local/bin/shfmt # Install warnai RUN apt-get update -qq && \ From a99d9dbd7cda6a55ff024a42a6c187148c740deb Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Mon, 28 Sep 2020 08:04:25 +1000 Subject: [PATCH 03/18] clone-fix --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9040187..6e5b205 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -425,7 +425,7 @@ ARG DOTFILES_CACHEBUST RUN DOTFILES_CACHEBUST=$DOTFILES_CACHEBUST echo "Building from dotfiles..." # Clone user dotfiles or fallback to sabrehagen dotfiles -RUN vcsh clone https://github.com/$DESKTOP_ENVIRONMENT_USER/dotfiles.git || \ +RUN git ls-remote git@github.com:$DESKTOP_ENVIRONMENT_USER/dotfiles.git && vcsh clone https://github.com/$DESKTOP_ENVIRONMENT_USER/dotfiles.git || \ vcsh clone https://github.com/sabrehagen/dotfiles.git && $HOME/.dotfiles-bootstrap.sh # Record container build information From abb7e50a923ea89db4e7ec405081b31414857116 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Fri, 16 Oct 2020 20:32:04 +1100 Subject: [PATCH 04/18] no-DISPLAY --- docker/Dockerfile | 12 +++++++----- docker/scripts/start.sh | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6e5b205..38d902c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,6 @@ ARG DESKTOP_ENVIRONMENT_HOST_USER_PASSWORD ARG DESKTOP_ENVIRONMENT_USER ENV DESKTOP_ENVIRONMENT_HOST_USER_PASSWORD ${DESKTOP_ENVIRONMENT_HOST_USER_PASSWORD:-'$6$7De0aW9hUvGDKZmc$qrylcFmwKAL9iGNG9dvQ/GXCM4gLY.hES/P2d/3ZzRxkVMjD77WeTVSxV1P9XtmE9iAUmDwDTCHiVK.p5Ct1y1:18193:0:99999:7:::'} -ENV DISPLAY :1 ENV EDITOR nano ENV LANG en_US.UTF-8 ENV LANGUAGE $LANG @@ -218,7 +217,7 @@ RUN git clone --depth 1 https://github.com/sabrehagen/desktop-environment.git /o # Install discord RUN wget -q -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb" && \ dpkg -i discord.deb || apt-get install -qq --fix-broken && \ - rm discord.deb + rm discord.deb && echo cachebusts # Install dive docker image explorer RUN wget -q -O dive.deb https://github.com/wagoodman/dive/releases/download/v0.7.2/dive_0.7.2_linux_amd64.deb && \ @@ -257,7 +256,10 @@ RUN add-apt-repository ppa:kgilmer/speed-ricer && \ sed -i 's/rm -f "$IMAGE"//' /usr/bin/i3lock-fancy && \ wget -q -O /usr/share/i3lock-fancy/lock.png http://png-pixel.com/1x1-00000000.png && \ pip3 install --user i3-resurrect==1.4.2 && \ - pip3 install --force --user i3-workspace-names-daemon + pip3 install --force --user i3-workspace-names-daemon && \ + git clone https://github.com/s-urbaniak/i3-focus-last ~/.config/i3/i3-focus-last && \ + cd ~/.config/i3/i3-focus-last && \ + go install # Install jobber RUN wget -O jobber.deb -q https://github.com/dshearer/jobber/releases/download/v1.4.0/jobber_1.4.0-1_amd64.deb && \ @@ -316,7 +318,7 @@ RUN wget -O skype.deb -q https://go.skype.com/skypeforlinux-64.deb && \ rm skype.deb # Install slack -RUN wget -O slack.deb -nv https://downloads.slack-edge.com/linux_releases/slack-desktop-4.1.1-amd64.deb && \ +RUN wget -O slack.deb -nv https://downloads.slack-edge.com/linux_releases/slack-desktop-4.9.1-amd64.deb && \ dpkg -i slack.deb || apt-get install -qq --fix-broken && \ rm slack.deb @@ -391,7 +393,7 @@ RUN wget -O zoom.deb -nv https://zoom.us/client/latest/zoom_amd64.deb && \ RUN mkdir -p $HOME/.config/openvpn && \ mknod $HOME/.config/openvpn/tun c 10 200 && \ chmod 600 $HOME/.config/openvpn/tun && \ - wget -O $HOME/.config/openvpn/america.ovpn -nv https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4231.nordvpn.com.tcp443.ovpn && \ + wget -O $HOME/.config/openvpn/america.ovpn -nv https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/us4672.nordvpn.com.tcp443.ovpn && \ wget -O $HOME/.config/openvpn/sydney.ovpn -nv https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/au698.nordvpn.com.tcp443.ovpn && \ wget -O $HOME/.config/openvpn/india.ovpn -nv https://downloads.nordcdn.com/configs/files/ovpn_legacy/servers/in82.nordvpn.com.tcp443.ovpn diff --git a/docker/scripts/start.sh b/docker/scripts/start.sh index 012176c..daf808d 100755 --- a/docker/scripts/start.sh +++ b/docker/scripts/start.sh @@ -20,7 +20,6 @@ docker run \ --device /dev/tty2 \ --device /dev/video0 \ --env DESKTOP_ENVIRONMENT_USER \ - --env DISPLAY=:1 \ --group-add audio \ --group-add docker \ --group-add input \ From bf9d95a3c8eb4b752522f4cac17649fc6cf46fa3 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Fri, 16 Oct 2020 21:05:30 +1100 Subject: [PATCH 05/18] ngrok --- docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 38d902c..8eea0d9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -381,6 +381,7 @@ RUN yarn global add \ github-email \ http-server \ imgur-uploader-cli \ + ngrok \ rebase-editor \ tldr @@ -428,7 +429,10 @@ RUN DOTFILES_CACHEBUST=$DOTFILES_CACHEBUST echo "Building from dotfiles..." # Clone user dotfiles or fallback to sabrehagen dotfiles RUN git ls-remote git@github.com:$DESKTOP_ENVIRONMENT_USER/dotfiles.git && vcsh clone https://github.com/$DESKTOP_ENVIRONMENT_USER/dotfiles.git || \ - vcsh clone https://github.com/sabrehagen/dotfiles.git && $HOME/.dotfiles-bootstrap.sh + vcsh clone https://github.com/sabrehagen/dotfiles.git + +# Bootstrap dotfiles +RUN $HOME/.dotfiles-bootstrap.sh # Record container build information ARG DESKTOP_CONTAINER_GIT_SHA From 5f25a33be1cd428da6e7388739e5fe20bcc1a7e6 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sat, 17 Oct 2020 11:45:32 +1100 Subject: [PATCH 06/18] PAT --- .github/workflows/build-and-publish.yml | 6 +++--- docker/scripts/start.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index ab52227..05d91a4 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -22,13 +22,13 @@ jobs: dockerfile: docker/Dockerfile image_name: desktop-environment push_git_tag: true - registry: docker.pkg.github.com/${{ env.GITHUB_REPOSITORY }} + registry: ghcr.io/${{ env.GITHUB_REPOSITORY }} username: ${{ env.REPOSITORY_OWNER }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Run desktop environment tests run: ./docker/scripts/test.sh env: - DESKTOP_ENVIRONMENT_REGISTRY: docker.pkg.github.com/${{ env.GITHUB_REPOSITORY }} + DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.GITHUB_REPOSITORY }} DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.ref }} continue-on-error: true diff --git a/docker/scripts/start.sh b/docker/scripts/start.sh index daf808d..6f4590d 100755 --- a/docker/scripts/start.sh +++ b/docker/scripts/start.sh @@ -17,7 +17,7 @@ docker run \ --device /dev/fuse \ --device /dev/input \ --device /dev/snd \ - --device /dev/tty2 \ + --device /dev/tty3 \ --device /dev/video0 \ --env DESKTOP_ENVIRONMENT_USER \ --group-add audio \ From e224e033e4b94369bb5a98f67e2b1ed5cd42a123 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sat, 17 Oct 2020 13:05:40 +1100 Subject: [PATCH 07/18] registry --- .github/workflows/build-and-publish.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 05d91a4..2c92f6a 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -9,9 +9,6 @@ jobs: - name: Check out repository uses: actions/checkout@v2 - - name: Sanitise Repository Name - run: echo ::set-env name=GITHUB_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') - - name: Sanitise Repository Owner run: echo ::set-env name=REPOSITORY_OWNER::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') @@ -22,13 +19,13 @@ jobs: dockerfile: docker/Dockerfile image_name: desktop-environment push_git_tag: true - registry: ghcr.io/${{ env.GITHUB_REPOSITORY }} + registry: ghcr.io/${{ env.REPOSITORY_OWNER }} username: ${{ env.REPOSITORY_OWNER }} password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Run desktop environment tests run: ./docker/scripts/test.sh env: - DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.GITHUB_REPOSITORY }} + DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }} DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.ref }} continue-on-error: true From 41a87cf338eba635a0db03f406966006b1811be0 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 12:56:16 +1100 Subject: [PATCH 08/18] no-plugin-managers --- docker/Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8eea0d9..da2c121 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -129,9 +129,6 @@ RUN wget -O alacritty.deb -nv https://github.com/jwilm/alacritty/releases/downlo dpkg -i alacritty.deb && \ rm alacritty.deb -# Install antigen -RUN curl -fsSL git.io/antigen > /usr/local/bin/antigen.zsh - # Install arc RUN wget -O /usr/local/bin/arc -q https://github.com/mholt/archiver/releases/download/v3.1.1/arc_linux_amd64 && \ chmod +x /usr/local/bin/arc @@ -333,9 +330,6 @@ RUN wget -O /usr/local/bin/timeago -nv https://raw.githubusercontent.com/sabreha RUN wget -O /usr/local/bin/tormix -nv https://raw.githubusercontent.com/ckardaris/tormix/master/tormix && \ chmod +x /usr/local/bin/tormix -# Install tmux plugin manager -RUN git clone --depth 1 https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm - # Install tmuxinator RUN gem install tmuxinator -v 1.1.5 From d5f223f185bbca07eb9ca4ecec42f8b167ed2d51 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 13:34:51 +1100 Subject: [PATCH 09/18] readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b23fffb..e6834ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ☁️ Cloud Desktop Environment -My [daily driver](https://cloud.docker.com/repository/docker/sabrehagen/desktop-environment) on the cloud and on desktop. +My [daily driver](https://github.com/users/sabrehagen/packages/container/package/desktop-environment) on the cloud and on desktop. ![desktop](https://i.imgur.com/cEBbzyu.png) @@ -16,9 +16,9 @@ git clone https://github.com/sabrehagen/desktop-environment ./desktop-environment/docker/scripts/recycle.sh ``` -## Forking +## Running in the Cloud -Set your [user configuration](docker/scripts/environment.sh#L3) and go. +Fork the [github-computer/github-computer](https://github.com/github-computer/github-computer) repository and this desktop environment will be deployed to GitHub's cloud. ## Keybindings @@ -56,4 +56,3 @@ Mod + slash - [x] A computer wholly defined in code. - [x] Only one command required to start from scratch. - From 005803c4e67bb38dff67566c6699b688fc4917a0 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 13:40:20 +1100 Subject: [PATCH 10/18] sha --- .github/workflows/build-and-publish.yml | 2 +- docker/scripts/test.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 2c92f6a..42f214f 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -27,5 +27,5 @@ jobs: run: ./docker/scripts/test.sh env: DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }} - DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.ref }} + DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.sha }} continue-on-error: true diff --git a/docker/scripts/test.sh b/docker/scripts/test.sh index 42322fe..bac675d 100755 --- a/docker/scripts/test.sh +++ b/docker/scripts/test.sh @@ -19,8 +19,6 @@ docker run \ $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE:$DESKTOP_ENVIRONMENT_CONTAINER_TAG \ sleep infinity -exit 1 - # Wait until the desktop environment test container is running before proceeding until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done From 33077bd5b6b5932730baea65a3d03f1ecf6916f6 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 13:52:49 +1100 Subject: [PATCH 11/18] build --- .../build-and-publish-from-dotfiles.yml | 31 +++++++++++++++++++ docker/Dockerfile | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-and-publish-from-dotfiles.yml diff --git a/.github/workflows/build-and-publish-from-dotfiles.yml b/.github/workflows/build-and-publish-from-dotfiles.yml new file mode 100644 index 0000000..f25fb46 --- /dev/null +++ b/.github/workflows/build-and-publish-from-dotfiles.yml @@ -0,0 +1,31 @@ +name: Publish Desktop Environment +on: [workflow_dispatch] +jobs: + build: + runs-on: ubuntu-latest + + steps: + + - name: Check out repository + uses: actions/checkout@v2 + + - name: Sanitise Repository Owner + run: echo ::set-env name=REPOSITORY_OWNER::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') + + - name: Build and Push to GitHub Container Registry + uses: whoan/docker-build-with-cache-action@master + with: + build_extra_args: --build-arg=DESKTOP_ENVIRONMENT_USER=${{ env.REPOSITORY_OWNER }} --build-arg=DOTFILES_CACHEBUST=${{ github.sha }} + dockerfile: docker/Dockerfile + image_name: desktop-environment + push_git_tag: true + registry: ghcr.io/${{ env.REPOSITORY_OWNER }} + username: ${{ env.REPOSITORY_OWNER }} + password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + - name: Run desktop environment tests + run: ./docker/scripts/test.sh + env: + DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }} + DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.sha }} + continue-on-error: true diff --git a/docker/Dockerfile b/docker/Dockerfile index da2c121..55b08db 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -214,7 +214,7 @@ RUN git clone --depth 1 https://github.com/sabrehagen/desktop-environment.git /o # Install discord RUN wget -q -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb" && \ dpkg -i discord.deb || apt-get install -qq --fix-broken && \ - rm discord.deb && echo cachebusts + rm discord.deb # Install dive docker image explorer RUN wget -q -O dive.deb https://github.com/wagoodman/dive/releases/download/v0.7.2/dive_0.7.2_linux_amd64.deb && \ From 984e9ce557269049357bb21f3a3ef723eb2c3a53 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 13:55:07 +1100 Subject: [PATCH 12/18] timeout --- docker/scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/test.sh b/docker/scripts/test.sh index bac675d..f28f0cd 100755 --- a/docker/scripts/test.sh +++ b/docker/scripts/test.sh @@ -20,7 +20,7 @@ docker run \ sleep infinity # Wait until the desktop environment test container is running before proceeding -until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done +timeout 10 until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done # Start the vnc server inside the desktop environment test container $REPO_ROOT/docker/scripts/exec.sh /home/$DESKTOP_ENVIRONMENT_USER/.config/scripts/startup.sh From 0c42e64b52052486fbde7be35abe613434dc2570 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 13:59:42 +1100 Subject: [PATCH 13/18] no-container-sha-in-tests --- .github/workflows/build-and-publish.yml | 1 - docker/scripts/test.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 42f214f..7098e06 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -27,5 +27,4 @@ jobs: run: ./docker/scripts/test.sh env: DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }} - DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.sha }} continue-on-error: true diff --git a/docker/scripts/test.sh b/docker/scripts/test.sh index f28f0cd..478c460 100755 --- a/docker/scripts/test.sh +++ b/docker/scripts/test.sh @@ -16,7 +16,7 @@ docker run \ --name $DESKTOP_ENVIRONMENT_CONTAINER_NAME \ --rm \ --workdir $DESKTOP_ENVIRONMENT_USER_HOME \ - $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE:$DESKTOP_ENVIRONMENT_CONTAINER_TAG \ + $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE \ sleep infinity # Wait until the desktop environment test container is running before proceeding From 71467aefad07e5e75b549ae103b05eff51340917 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 14:14:27 +1100 Subject: [PATCH 14/18] subshell --- docker/scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/test.sh b/docker/scripts/test.sh index 478c460..620cd91 100755 --- a/docker/scripts/test.sh +++ b/docker/scripts/test.sh @@ -20,7 +20,7 @@ docker run \ sleep infinity # Wait until the desktop environment test container is running before proceeding -timeout 10 until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done +timeout 10 $(until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done) # Start the vnc server inside the desktop environment test container $REPO_ROOT/docker/scripts/exec.sh /home/$DESKTOP_ENVIRONMENT_USER/.config/scripts/startup.sh From 86e306fa9f8e65e7be259fe861fcd951b8d34d48 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 15:38:35 +1100 Subject: [PATCH 15/18] manual --- .github/workflows/build-and-publish-from-dotfiles.yml | 3 +-- .github/workflows/build-and-publish.yml | 1 - docker/Dockerfile | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish-from-dotfiles.yml b/.github/workflows/build-and-publish-from-dotfiles.yml index f25fb46..ca8db8c 100644 --- a/.github/workflows/build-and-publish-from-dotfiles.yml +++ b/.github/workflows/build-and-publish-from-dotfiles.yml @@ -1,9 +1,8 @@ -name: Publish Desktop Environment +name: Build Desktop Environment From Dotfiles on: [workflow_dispatch] jobs: build: runs-on: ubuntu-latest - steps: - name: Check out repository diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7098e06..fdf7020 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -3,7 +3,6 @@ on: [push] jobs: build: runs-on: ubuntu-latest - steps: - name: Check out repository diff --git a/docker/Dockerfile b/docker/Dockerfile index 55b08db..f55a59b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -285,7 +285,8 @@ RUN wget -O musikcube.deb -nv https://github.com/clangen/musikcube/releases/down RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - # Install novnc -RUN git clone --depth 1 https://github.com/cloud-computer/noVNC.git /opt/noVNC +RUN git clone --depth 1 https://github.com/cloud-computer/noVNC.git /opt/noVNC && \ + git clone https://github.com/novnc/websockify /opt/noVNC/utils # Install onedrive client RUN wget -O /usr/local/bin/onedrive -nv https://github.com/sabrehagen/onedrive/raw/master/onedrive && \ From bcfb2e6dc420de87fbf76b927fb1471fecd91179 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 15:47:50 +1100 Subject: [PATCH 16/18] no-env --- .github/workflows/build-and-publish-from-dotfiles.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-and-publish-from-dotfiles.yml b/.github/workflows/build-and-publish-from-dotfiles.yml index ca8db8c..6261b3f 100644 --- a/.github/workflows/build-and-publish-from-dotfiles.yml +++ b/.github/workflows/build-and-publish-from-dotfiles.yml @@ -26,5 +26,4 @@ jobs: run: ./docker/scripts/test.sh env: DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }} - DESKTOP_ENVIRONMENT_CONTAINER_TAG: ${{ github.sha }} continue-on-error: true From af9c1b4b94b0f6bf8dc6846406ccf4ef2cc2c182 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sun, 18 Oct 2020 15:52:47 +1100 Subject: [PATCH 17/18] websockify --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f55a59b..0c59d3f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -286,7 +286,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - # Install novnc RUN git clone --depth 1 https://github.com/cloud-computer/noVNC.git /opt/noVNC && \ - git clone https://github.com/novnc/websockify /opt/noVNC/utils + git clone https://github.com/novnc/websockify /opt/noVNC/utils/websockify # Install onedrive client RUN wget -O /usr/local/bin/onedrive -nv https://github.com/sabrehagen/onedrive/raw/master/onedrive && \ From 7fba7a54d51ca7aea35411a174a3b1042aaa6916 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Mon, 19 Oct 2020 14:41:01 +1100 Subject: [PATCH 18/18] localtunnel --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0c59d3f..9460611 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -376,9 +376,11 @@ RUN yarn global add \ github-email \ http-server \ imgur-uploader-cli \ + localtunnel \ ngrok \ rebase-editor \ - tldr + tldr && \ + tldr --update # Install zoom conferencing RUN wget -O zoom.deb -nv https://zoom.us/client/latest/zoom_amd64.deb && \