Skip to content

Commit

Permalink
cherry-pick(release-1.16): do not export DISPLAY for everybody withou…
Browse files Browse the repository at this point in the history
…t XVFB running

PR #9795

Fixes #9756
  • Loading branch information
aslushnikov committed Oct 26, 2021
1 parent 18a0a4a commit 7ba8ba7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions utils/docker/Dockerfile.bionic
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ RUN apt-get update && apt-get install -y python3.8 python3-pip && \

ARG NOVNC_REF="1.2.0"
ARG WEBSOCKIFY_REF="0.10.0"
ENV DISPLAY_NUM=99
ENV DISPLAY=":${DISPLAY_NUM}"

RUN mkdir -p /opt/bin && chmod +x /dev/shm \
&& apt-get update && apt-get install -y unzip fluxbox x11vnc \
Expand Down
2 changes: 0 additions & 2 deletions utils/docker/Dockerfile.focal
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ RUN apt-get update && apt-get install -y python3.8 python3-pip && \

ARG NOVNC_REF="1.2.0"
ARG WEBSOCKIFY_REF="0.10.0"
ENV DISPLAY_NUM=99
ENV DISPLAY=":${DISPLAY_NUM}"

RUN mkdir -p /opt/bin && chmod +x /dev/shm \
&& apt-get update && apt-get install -y unzip fluxbox x11vnc \
Expand Down
3 changes: 3 additions & 0 deletions utils/docker/start_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -e
set +x

DISPLAY_NUM=99
export DISPLAY=":${DISPLAY_NUM}"

SCREEN_WIDTH=1360
SCREEN_HEIGHT=1020
SCREEN_DEPTH=24
Expand Down

0 comments on commit 7ba8ba7

Please sign in to comment.