Skip to content

Commit

Permalink
Fix sysbox cloud shells (#438)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
michaeljguarino committed Sep 1, 2023
1 parent 3a8c1fe commit 8cf7240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ RUN apt-get -yq update \
less \
lsb-release \
openssh-client \
dtach \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions start-session.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8cf7240

Please sign in to comment.