Skip to content

Commit 7901422

Browse files
authored
Fix kernel-spark-py and kernel-spark-r images (#1217)
Use /usr/bin/tini
1 parent 65b31f3 commit 7901422

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

etc/docker/kernel-spark-py/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ RUN curl -s https://archive.apache.org/dist/spark/spark-${SPARK_VER}/spark-${SPA
3232
ln -s ${SPARK_HOME}-${SPARK_VER}-bin-hadoop2.7 $SPARK_HOME
3333

3434
# Download entrypoint.sh from matching tag
35-
# Use tini from Anaconda installation
3635
RUN cd /opt/ && \
3736
wget https://raw.githubusercontent.com/apache/spark/v${SPARK_VER}/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh && \
3837
chmod a+x /opt/entrypoint.sh && \
39-
sed -i 's/tini -s/tini -g/g' /opt/entrypoint.sh && \
40-
ln -sfn /opt/conda/bin/tini /usr/bin/tini
38+
sed -i 's/tini -s/tini -g/g' /opt/entrypoint.sh
4139

4240
WORKDIR $SPARK_HOME/work-dir
4341
# Ensure that work-dir is writable by everyone

etc/docker/kernel-spark-r/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ RUN curl -s https://archive.apache.org/dist/spark/spark-${SPARK_VER}/spark-${SPA
2727
ln -s ${SPARK_HOME}-${SPARK_VER}-bin-hadoop2.7 $SPARK_HOME
2828

2929
# Download entrypoint.sh from matching tag
30-
# Use tini from Anaconda installation
3130
RUN cd /opt/ && \
3231
wget https://raw.githubusercontent.com/apache/spark/v${SPARK_VER}/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh && \
3332
chmod a+x /opt/entrypoint.sh && \
34-
sed -i 's/tini -s/tini -g/g' /opt/entrypoint.sh && \
35-
ln -sfn /opt/conda/bin/tini /usr/bin/tini
33+
sed -i 's/tini -s/tini -g/g' /opt/entrypoint.sh
3634

3735
WORKDIR $SPARK_HOME/work-dir
3836
# Ensure that work-dir is writable by everyone

0 commit comments

Comments
 (0)