Skip to content

Commit

Permalink
Use Gradle directly in dataflow engine Docker build (#148)
Browse files Browse the repository at this point in the history
* Copy Gradle 7.4 from existing, official Docker image

This avoids needing to download Gradle via the wrapper on every build invocation
of the dataflow engine's Dockerfile.

* Use Gradle directly instead of via wrapper for dataflow engine Docker image
  • Loading branch information
agrski authored Apr 14, 2022
1 parent c3609d7 commit f998108
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scheduler/Dockerfile.dataflow
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM azul/zulu-openjdk-alpine:17.0.2-17.32.13 AS builder

COPY --from=gradle:7.4.2-jdk17 /opt/gradle /opt/gradle
RUN ln -s /opt/gradle/bin/gradle /usr/bin/gradle

WORKDIR /build
COPY apis-TEMP apis
COPY data-flow src/data-flow

# TODO - build with Gradle image, with Zulu added in
WORKDIR src/data-flow
RUN ./gradlew build
RUN gradle build --no-daemon --info

################################################################################

Expand Down

0 comments on commit f998108

Please sign in to comment.