Skip to content

Commit

Permalink
docker: Set DISPLAY when su'ing to 'builder' (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 authored Nov 24, 2024
1 parent 1029764 commit 612d24e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/default-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
/docker/main_entry.sh

su builder -c "bash -l -c '\
su builder -c "DISPLAY=$DISPLAY bash -l -c '\
cd /workspace && \
bun install &&
bun run codegen &&
Expand Down
3 changes: 2 additions & 1 deletion docker/shell-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
set -e
/docker/main_entry.sh

su builder -l -c "cd /workspace && bash"
# For some reason, using simply 'export DISPLAY' doesn't work
su builder -l -c "cd /workspace && DISPLAY=$DISPLAY bash"

0 comments on commit 612d24e

Please sign in to comment.