mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 14:31:20 +00:00
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:
6
build/docker/docker-compose.x11.yaml
vendored
Normal file
6
build/docker/docker-compose.x11.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
openbb:
|
||||
environment:
|
||||
DISPLAY: ${DISPLAY}
|
||||
volumes:
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix
|
||||
17
website/content/terminal/installation/docker.md
vendored
17
website/content/terminal/installation/docker.md
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user