Docker : update publishing (#3545)

* Moving Docker folder into Build

* Workflows : update Docker

* Docker : update compose image version

* Docker : fix volumes path

* Docker : update doc
This commit is contained in:
Chavithra
2022-11-23 16:38:50 +01:00
committed by GitHub
parent e7992f36d6
commit 263840494b
8 changed files with 9 additions and 8 deletions

View File

@@ -33,8 +33,8 @@ jobs:
- name: Building the Docker image
run: |
source docker/compose.env
source docker/build.sh
source build/docker/compose.env
source build/docker/build.sh
echo "OPENBBTERMINAL_DOCKER_POETRY_IMAGE=$OPENBBTERMINAL_DOCKER_POETRY_IMAGE" >> $GITHUB_ENV
- name: Publishing the Docker image

1
.gitignore vendored
View File

@@ -35,6 +35,7 @@ openbb_terminal/reports/templates/*.html
website/functions
*_sdk_audit.csv
website/terminaltest
!build/docker/compose.env
# pyinstaller artifacts
*.pyo

View File

@@ -4,9 +4,9 @@ services:
environment:
DISPLAY: host.docker.internal:0.0
volumes:
- ~/OpenBBUserData:/home/python/OpenBBUserData
- ~/.openbb_terminal:/home/python/.openbb_terminal
- ~/OpenBBUserData:/root/OpenBBUserData
- ~/.openbb_terminal:/root/.openbb_terminal
platform: linux/amd64
image: ghcr.io/openbb-finance/openbbterminal/poetry:1.9.1
image: ghcr.io/openbb-finance/openbbterminal/poetry:2.0.0rc1
stdin_open: true # docker run -i
tty: true # docker run -t

View File

@@ -87,7 +87,7 @@ Here is the commands to run:
```bash
docker pull ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
docker run -v ~/.openbb_terminal/:/home/python/.openbb_terminal -v ~/OpenBBUserData:/home/python/OpenBBUserData -it --rm ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
docker run -v ~/.openbb_terminal/:/root/.openbb_terminal -v ~/OpenBBUserData:/root/OpenBBUserData -it --rm ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
```
Be sure to replace `X.Y.Z` with the version you want to pull and run.
@@ -122,7 +122,7 @@ docker compose run poetry
Or run `Docker` directly:
```bash
docker run -v ~/.openbb_terminal:/home/python/.openbb_terminal -v ~/OpenBBUserData:/home/python/OpenBBUserData -it --rm --env DISPLAY=host.docker.internal:0.0 ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
docker run -v ~/.openbb_terminal:/root/.openbb_terminal -v ~/OpenBBUserData:/root/OpenBBUserData -it --rm --env DISPLAY=host.docker.internal:0.0 ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
```
### X-Server on macOS
@@ -151,7 +151,7 @@ xhost + $IP
Now we can run the docker container, adding the display to the environment:
```bash
docker run -v ~/.openbb_terminal/:/home/python/.openbb_terminal -v ~/OpenBBUserData:/home/python/OpenBBUserData -it --rm --env-file=path/to/setenv --env DISPLAY=$IP:0 ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
docker run -v ~/.openbb_terminal/:/root/.openbb_terminal -v ~/OpenBBUserData:/root/OpenBBUserData -it --rm --env-file=path/to/setenv --env DISPLAY=$IP:0 ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z
```
This container will be able to display all the same plots as the terminal interface.