@@ -34,6 +34,13 @@ install-deps:
3434 RUN sudo apt-get install nodejs -y
3535 RUN npm install --global yarn
3636 RUN npm install --global openapi-typescript-codegen
37+ RUN apt install unzip -y
38+ RUN apt install python3-requests -y
39+ RUN arch= `dpkg --print-architecture `; \
40+ curl -LO https://github.com/redpanda-data/redpanda/releases/latest/download/rpk-linux-$arch .zip \
41+ && unzip rpk-linux-$arch .zip -d /bin/ \
42+ && rpk version \
43+ && rm rpk-linux-$arch .zip
3744
3845install-rust :
3946 FROM +install-deps
@@ -320,12 +327,6 @@ pipeline-manager-container-cors-all:
320327build-demo-container :
321328 FROM +install-rust
322329 WORKDIR /
323- RUN apt install unzip -y
324- RUN arch= `dpkg --print-architecture `; \
325- curl -LO https://github.com/redpanda-data/redpanda/releases/latest/download/rpk-linux-$arch .zip \
326- && unzip rpk-linux-$arch .zip -d /bin/ \
327- && rpk version \
328- && rm rpk-linux-$arch .zip
329330 # Install snowsql
330331 RUN curl -O https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.28-linux_x86_64.bash \
331332 && SNOWSQL_DEST= /bin SNOWSQL_LOGIN_SHELL= ~/.profile bash snowsql-1.2.28-linux_x86_64.bash \
@@ -513,11 +514,30 @@ ui-playwright-tests:
513514 END
514515
515516benchmark :
516- FROM +build-nexmark
517+ FROM +build-manager
517518 COPY scripts/bench.bash scripts/bench.bash
518-
519- RUN bash scripts/bench.bash
519+ COPY benchmark/feldera-sql/run.py benchmark/feldera-sql/run.py
520+ COPY +build-manager/pipeline-manager .
521+ COPY +build-sql/sql-to-dbsp-compiler sql-to-dbsp-compiler
522+ RUN mkdir -p /working-dir/cargo_workspace
523+ COPY Cargo.lock /working-dir/cargo_workspace/Cargo.lock
524+ ENV PGHOST= localhost
525+ ENV PGUSER= postgres
526+ ENV PGCLIENTENCODING= UTF8
527+ ENV PGPORT= 5432
528+ ENV RUST_LOG= error
529+ ENV WITH_POSTGRES= 1
530+ ENV IN_CI= 1
531+ WITH DOCKER --pull postgres
532+ RUN docker run --shm-size = 512MB -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD= trust -e PGDATA= /dev/shm -d postgres && \
533+ sleep 10 && \
534+ (./pipeline-manager --bind-address = 0.0.0.0 --api-server-working-directory = /working-dir --compiler-working-directory = /working-dir --runner-working-directory = /working-dir --sql-compiler-home = /dbsp/sql-to-dbsp-compiler --dbsp-override-path = /dbsp --db-connection-string = postgresql://postgres:postgres@localhost:5432 --compilation-profile = optimized &) && \
535+ sleep 5 && \
536+ docker run --name redpanda -p 9092:9092 --rm -itd docker.redpanda.com/vectorized/redpanda:v23.2.3 redpanda start --smp 2 \
537+ && bash scripts/bench.bash
538+ END
520539 SAVE ARTIFACT crates/nexmark/nexmark_results.csv AS LOCAL .
540+ SAVE ARTIFACT crates/nexmark/sql_nexmark_results.csv AS LOCAL .
521541 SAVE ARTIFACT crates/nexmark/dram_nexmark_results.csv AS LOCAL .
522542 SAVE ARTIFACT crates/dbsp/galen_results.csv AS LOCAL .
523543 # SAVE ARTIFACT crates/dbsp/ldbc_results.csv AS LOCAL .
0 commit comments