From 8cf72400f921f416513e6b6c5fd54d46ab4c1998 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Fri, 1 Sep 2023 08:41:53 -0400 Subject: [PATCH] Fix sysbox cloud shells (#438) * Fix sysbox cloud shells There's some mystical interaction between sysbox and screen that caused terminal output to break. Trying to fix it with this. * try -r winch --- dockerfiles/Dockerfile.cloud | 1 + start-session.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile.cloud b/dockerfiles/Dockerfile.cloud index 15f08ad72..27a3842ef 100644 --- a/dockerfiles/Dockerfile.cloud +++ b/dockerfiles/Dockerfile.cloud @@ -74,6 +74,7 @@ RUN apt-get -yq update \ less \ lsb-release \ openssh-client \ + dtach \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/start-session.sh b/start-session.sh index 96283e892..e1a41f6a6 100644 --- a/start-session.sh +++ b/start-session.sh @@ -1,10 +1,10 @@ #!/bin/sh -session="plural-workspace" +session="/tmp/plural-workspace" # ensure necessary env vars are populated if [ -f /home/plural/.env ]; then source /home/plural/.env fi -screen -xR -S $session /home/plural/boot.sh +dtach -A $session -r winch -Ez /home/plural/boot.sh