Skip to content

Commit 07cf4fa

Browse files
committed
move env directive out of heredoc
1 parent afc34ad commit 07cf4fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spark-k8s/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,6 @@ microdnf install \
319319
microdnf clean all
320320
rm -rf /var/cache/yum
321321

322-
# The base image (java-base) defines this to point to a JRE installation.
323-
# Spark Connect requires it to point to a JDK installation.
324-
ENV JAVA_HOME="/usr/lib/jvm/java-${JAVA_VERSION}-openjdk"
325-
326322
ln -s /usr/bin/python${PYTHON} /usr/bin/python
327323
ln -s /usr/bin/pip-${PYTHON} /usr/bin/pip
328324

@@ -336,6 +332,11 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
336332
chmod -R g=u /stackable
337333
EOF
338334

335+
# The base image (java-base) defines this to point to a JRE installation.
336+
# Spark Connect requires it to point to a JDK installation.
337+
ENV JAVA_HOME="/usr/lib/jvm/java-${JAVA_VERSION}-openjdk"
338+
339+
339340
# ----------------------------------------
340341
# Attention: We are changing the group of all files in /stackable directly above
341342
# If you do any file based actions (copying / creating etc.) below this comment you

0 commit comments

Comments
 (0)