Add X11 support for docker to display charts (#4447)

* Add X11 support for docker to display charts

* Update installation docs for docker

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
This commit is contained in:
Carlos
2023-04-24 15:58:09 +02:00
committed by GitHub
parent 33d10687de
commit 1b8616e7f9
2 changed files with 15 additions and 8 deletions

6
build/docker/docker-compose.x11.yaml vendored Normal file
View File

@@ -0,0 +1,6 @@
services:
openbb:
environment:
DISPLAY: ${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix

View File

@@ -193,14 +193,14 @@ Start Docker, this is how the right output looks like:
```console
docker info
Client:
Context: default
Debug Mode: false
Context: desktop-linux
Debug Mode: false
Server:
Containers: 14
Running: 2
Paused: 1
Stopped: 10
Containers: 14
Running: 2
Paused: 1
Stopped: 10
```
**Pull and run the container**
@@ -209,11 +209,12 @@ Execute these commands:
```console
curl -o docker-compose.yaml https://raw.githubusercontent.com/OpenBB-finance/OpenBBTerminal/main/build/docker/docker-compose.yaml
curl -o docker-compose.x11.yaml https://raw.githubusercontent.com/OpenBB-finance/OpenBBTerminal/main/build/docker/docker-compose.x11.yaml
xhost +local:
docker compose run openbb
docker compose -f docker-compose.yaml -f docker-compose.x11.yaml run openbb
```
Note: if you're using remote docker host, you can connect with `ssh -X <FQDN/IP>`.
</TabItem>
</Tabs>