add support for openbb

This commit is contained in:
Ruben Fiszel
2023-01-28 03:56:40 +01:00
parent 79afb712c7
commit aea3a1bb3d
3 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
name: Build and push windmill with python 3.10
name: Build and push windmill with python 3.10 and openbb
on: workflow_dispatch
concurrency:
@@ -38,9 +38,10 @@ jobs:
with:
context: .
push: true
file: ./docker/DockerfileOpenbb
build-args: |
features=enterprise
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:310
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:openbb
labels: |
org.opencontainers.image.licenses=Windmill-Enterprise-License
+6
View File
@@ -431,6 +431,12 @@ pub async fn run_worker(
.ok()
.map(|x| x.split(',').map(|x| x.to_string()).collect());
let pip_local_dependencies = if pip_local_dependencies == Some(vec!["".to_string()]) {
None
} else {
pip_local_dependencies
};
#[cfg(feature = "enterprise")]
let tar_cache_rate = std::env::var("TAR_CACHE_RATE")
.ok()
@@ -129,6 +129,8 @@ COPY --from=nsjail /nsjail/nsjail /bin/nsjail
COPY --from=denoland/deno:latest /usr/bin/deno /usr/bin/deno
RUN /usr/local/bin/python3 -m pip install openbb[all]
RUN mkdir -p ${APP}
WORKDIR ${APP}