-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.bsp/ | ||
.git/ | ||
.metals/ | ||
.vscode/ | ||
benchmarks/ | ||
charts/ | ||
docs/ | ||
kubernetes/ | ||
target/ | ||
terraform/ | ||
.dockerignore | ||
.gitignore | ||
.scalafmt.conf | ||
Dockerfile | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
ARG SPARK_IMAGE=apache/spark:v3.3.2 | ||
ARG SPARK_IMAGE=spark:3.5.3 | ||
|
||
FROM debian:bullseye-slim as kit-builder | ||
ARG SBT_IMAGE=sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.4_2.12.20 | ||
|
||
ENV GIT_COMMIT_ID "1b7fb7529edae091684201fab142d956d6afd881" | ||
FROM debian:bullseye-slim AS tpcds-kit-builder | ||
|
||
ENV GIT_COMMIT_ID=1b7fb7529edae091684201fab142d956d6afd881 | ||
|
||
WORKDIR /app | ||
|
||
RUN set -eux && \ | ||
apt-get update && \ | ||
apt-get install -y gcc make flex bison byacc git && \ | ||
apt-get install -y gcc make flex bison byacc git | ||
|
||
RUN set -eux && \ | ||
git clone https://github.com/databricks/tpcds-kit.git && \ | ||
cd tpcds-kit && \ | ||
git checkout ${GIT_COMMIT_ID} && \ | ||
cd tools && \ | ||
make OS=LINUX | ||
|
||
FROM ${SBT_IMAGE} AS benchmark-builder | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN set -eux && \ | ||
sbt assembly | ||
|
||
FROM ${SPARK_IMAGE} | ||
|
||
COPY --from=kit-builder /app/tpcds-kit/tools /opt/tpcds-kit/tools | ||
COPY --from=tpcds-kit-builder /app/tpcds-kit/tools /opt/tpcds-kit/tools | ||
|
||
COPY --from=benchmark-builder /app/target/scala-2.12/*.jar /opt/spark/jars/ | ||
|
||
COPY target/scala-2.12/spark-tpcds-benchmark-assembly-0.1.jar /opt/spark/jars/ | ||
COPY lib /opt/spark/jars/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters