Skip to content

Commit f43e253

Browse files
labrenbedervoeti
andauthored
Apply suggestions from code review
clean up Dockerfile Co-authored-by: Lukas Krug <[email protected]>
1 parent cf0ea72 commit f43e253

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

kafka/kafka-opa-plugin/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# syntax=docker/dockerfile:1.16.0@sha256:e2dd261f92e4b763d789984f6eab84be66ab4f5f08052316d8eb8f173593acf7
22
# check=error=true
33

4-
# FROM stackable/image/opa AS opa
54
FROM stackable/image/java-devel
65

76
ARG PRODUCT
@@ -12,16 +11,12 @@ WORKDIR /stackable
1211

1312
COPY --chown=${STACKABLE_USER_UID}:0 kafka/kafka-opa-plugin/stackable/patches/patchable.toml /stackable/src/kafka/kafka-opa-plugin/stackable/patches/patchable.toml
1413
COPY --chown=${STACKABLE_USER_UID}:0 kafka/kafka-opa-plugin/stackable/patches/${PRODUCT} /stackable/src/kafka/kafka-opa-plugin/stackable/patches/${PRODUCT}
15-
# COPY --chown=${STACKABLE_USER_UID}:0 --from=opa /stackable/opa/opa /usr/local/bin/opa
1614

1715
RUN <<EOF
1816
cd "$(/stackable/patchable --images-repo-root=src checkout kafka/kafka-opa-plugin ${PRODUCT})"
1917

2018
# Create snapshot of the source code including custom patches
2119
tar -czf /stackable/kafka-opa-plugin-${PRODUCT}-src.tar.gz .
2220

23-
# TODO: Try to install gradle via package manager (if possible) instead of fetching it from the internet
24-
# We don't specify "-x test" to skip the tests, as we might bump some Kafka internal dependencies in the future and
25-
# it's a good idea to run the tests in this case.
2621
./gradlew clean shadowJar
2722
EOF

0 commit comments

Comments
 (0)