From 6ad8dca42282e72511dac292bc8a3d4885a818b1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 1 Aug 2023 19:31:53 +0200 Subject: [PATCH] remove openbb --- .github/workflows/docker-310-openbb.yml | 47 -------- docker/DockerfileOpenbb | 143 ------------------------ 2 files changed, 190 deletions(-) delete mode 100644 .github/workflows/docker-310-openbb.yml delete mode 100644 docker/DockerfileOpenbb diff --git a/.github/workflows/docker-310-openbb.yml b/.github/workflows/docker-310-openbb.yml deleted file mode 100644 index f48b2ab1d1..0000000000 --- a/.github/workflows/docker-310-openbb.yml +++ /dev/null @@ -1,47 +0,0 @@ -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -name: Build windmill:openbb -on: workflow_dispatch - -concurrency: - group: ${{ github.ref }}-openbb - cancel-in-progress: true - -permissions: - contents: read - id-token: write - packages: write - -jobs: - build_ee: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v2 - - - uses: depot/setup-action@v1 - - - name: Login to registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push publicly ee - uses: depot/build-push-action@v1 - with: - context: . - push: true - file: ./docker/DockerfileOpenbb - build-args: | - features=enterprise - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:openbb - labels: | - org.opencontainers.image.licenses=Windmill-Enterprise-License diff --git a/docker/DockerfileOpenbb b/docker/DockerfileOpenbb deleted file mode 100644 index 6c4340ce1b..0000000000 --- a/docker/DockerfileOpenbb +++ /dev/null @@ -1,143 +0,0 @@ -FROM debian:buster-slim as nsjail - -WORKDIR /nsjail - -ARG nsjail="" - -RUN if [ "$nsjail" = "true" ]; then apt-get -y update \ - && apt-get install -y \ - bison=2:3.3.* \ - flex=2.6.* \ - g++=4:8.3.* \ - gcc=4:8.3.* \ - git=1:2.20.* \ - libprotobuf-dev=3.6.* \ - libnl-route-3-dev=3.4.* \ - make=4.2.* \ - pkg-config=0.29-6 \ - protobuf-compiler=3.6.*; fi - - -RUN if [ "$nsjail" = "true" ]; then git clone -b master --single-branch https://github.com/google/nsjail.git . \ - && git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800; fi -RUN if [ "$nsjail" = "true" ]; then make; else touch nsjail; fi - -FROM rust:slim-buster AS rust_base - -RUN apt-get update && apt-get install -y git libssl-dev pkg-config npm - -RUN apt-get -y update \ - && apt-get install -y \ - curl nodejs npm - -RUN rustup component add rustfmt - -RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install cargo-chef - -WORKDIR /windmill - -ENV SQLX_OFFLINE=true -ENV CARGO_INCREMENTAL=1 - -FROM node:19-alpine as frontend - -# install dependencies -WORKDIR /frontend -COPY ./frontend/package.json ./frontend/package-lock.json ./ -RUN npm ci - -# Copy all local files into the image. -COPY frontend . -RUN mkdir /backend -COPY /backend/windmill-api/openapi.yaml /backend/windmill-api/openapi.yaml -COPY /openflow.openapi.yaml /openflow.openapi.yaml -COPY /backend/windmill-api/build_openapi.sh /backend/windmill-api/build_openapi.sh -RUN cd /backend/windmill-api && . ./build_openapi.sh -COPY /backend/parsers/windmill-parser-wasm/pkg/ /backend/parsers/windmill-parser-wasm/pkg/ - -RUN npm run generate-backend-client -ENV NODE_OPTIONS "--max-old-space-size=8192" -RUN npm run build - - - -FROM rust_base AS planner - -COPY ./openflow.openapi.yaml /openflow.openapi.yaml -COPY ./backend ./ - -RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo chef prepare --recipe-path recipe.json - -FROM rust_base AS builder -ARG features="" - -COPY --from=planner /windmill/recipe.json recipe.json - -RUN apt-get update && apt-get install -y libxml2-dev libxmlsec1-dev clang libclang-dev - -RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo chef cook --release --features "$features" --recipe-path recipe.json - -COPY ./openflow.openapi.yaml /openflow.openapi.yaml -COPY ./backend ./ - -COPY --from=frontend /frontend /frontend -COPY --from=frontend /backend/windmill-api/openapi-deref.yaml ./windmill-api/openapi-deref.yaml -COPY .git/ .git/ - -RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --release --features "$features" - - -FROM python:3.10.8-slim-buster - -ARG APP=/usr/src/app - -RUN apt-get update \ - && apt-get install -y ca-certificates wget curl git jq libprotobuf-dev libnl-route-3-dev unzip build-essential pkg-config libcairo2-dev libwebkit2gtk-4.0-37 unixodbc xmlsec1 \ - && rm -rf /var/lib/apt/lists/* - -RUN arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \ - curl -o rclone.zip "https://downloads.rclone.org/v1.60.1/rclone-v1.60.1-linux-$arch.zip"; \ - unzip -p rclone.zip rclone-v1.60.1-linux-$arch/rclone > /usr/bin/rclone; rm rclone.zip; \ - chown root:root /usr/bin/rclone; chmod 755 /usr/bin/rclone - -RUN set -eux; \ - arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \ - url=; \ - case "$arch" in \ - 'amd64') \ - targz='go1.19.3.linux-amd64.tar.gz'; \ - ;; \ - 'arm64') \ - targz='go1.19.3.linux-arm64.tar.gz'; \ - ;; \ - 'armhf') \ - targz='go1.19.3.linux-armv6l.tar.gz'; \ - ;; \ - *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \ - esac; \ - wget "https://golang.org/dl/$targz" -nv && tar -C /usr/local -xzf "$targz" && rm "$targz"; - -ENV PATH="${PATH}:/usr/local/go/bin" -ENV GO_PATH=/usr/local/go/bin/go - -ENV TZ=Etc/UTC - -RUN /usr/local/bin/python3 -m pip install pip-tools - -COPY --from=builder /windmill/target/release/windmill ${APP}/windmill - -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} - -RUN ln -s ${APP}/windmill /usr/local/bin/windmill - -WORKDIR ${APP} - -EXPOSE 8000 - -CMD ["windmill"]