├── Dockerfile ├── OpenBB.desktop ├── README.md └── run-openbb.sh /Dockerfile: -------------------------------------------------------------------------------- 1 | # https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/ 2 | FROM dorowu/ubuntu-desktop-lxde-vnc:focal 3 | 4 | # for the local apt-cacher-ng proxy, local development only 5 | # RUN echo 'Acquire::HTTP::Proxy "http://192.168.1.226:3142";' >> /etc/apt/apt.conf.d/01proxy && \ 6 | # echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy 7 | 8 | RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \ 9 | apt update && \ 10 | apt install -y --no-install-recommends ca-certificates build-essential wget git-core python3 python3-pip python3-dev libgl1-mesa-glx libegl1-mesa libxrandr2 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 && \ 11 | apt upgrade -y && \ 12 | apt autoremove -y && \ 13 | rm -rf /var/lib/apt/lists/* 14 | 15 | WORKDIR / 16 | 17 | RUN apt purge -y python3-requests && \ 18 | pip3 install --no-cache-dir --upgrade poetry requests certifi && \ 19 | git clone --recursive -b main --single-branch --depth=1 https://github.com/OpenBB-finance/OpenBBTerminal.git && \ 20 | cd ./OpenBBTerminal/ && \ 21 | poetry install --no-interaction --no-ansi 22 | 23 | COPY run-openbb.sh /run-openbb.sh 24 | 25 | RUN chmod +x run-openbb.sh 26 | 27 | COPY OpenBB.desktop /root/Desktop/OpenBB.desktop 28 | -------------------------------------------------------------------------------- /OpenBB.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=OpenBB 3 | Type=Application 4 | Comment=OpenBB 5 | Categories=Application 6 | Exec=/run-openbb.sh 7 | Terminal=true -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # openbb-docker 2 | 3 | OpenBB terminal system in a Docker container accessible via a web-browser. 4 | 5 | ## Requirements 6 | 7 | * Docker 8 | 9 | ## Setup 10 | 11 | ```shell 12 | docker build -t ghcr.io/firefly2442/openbb-docker:latest . 13 | ``` 14 | 15 | ## Running 16 | 17 | ```shell 18 | docker run -p 6080:80 --name=openbb-docker ghcr.io/firefly2442/openbb-docker:latest 19 | ``` 20 | 21 | Open [http://localhost:6080](http://localhost:6080) 22 | 23 | Double-click the OpenBB launcher on the desktop and pick "Execute". 24 | 25 | ## Teardown 26 | 27 | ```shell 28 | CTRL + C 29 | docker rm 30 | ``` 31 | 32 | ## Security 33 | 34 | Depending on where you are running this and/or your network settings, this container 35 | could be visible to the outside world. Be careful that this not be used as 36 | an attack vector onto your systems. 37 | 38 | ## References 39 | 40 | * [Level1Techs OpenBB Tutorial](https://www.youtube.com/watch?v=OYSSM2s_oq4) 41 | * [OpenBB Terminal with Docker](https://github.com/OpenBB-finance/OpenBBTerminal/blob/main/openbb_terminal/DOCKER_README.md) 42 | -------------------------------------------------------------------------------- /run-openbb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source /home/ubuntu/.cache/pypoetry/virtualenvs/openbbterminal-99ZnGhFZ-py3.8/bin/activate 4 | python3 /OpenBBTerminal/terminal.py 5 | --------------------------------------------------------------------------------