Skip to content

Commit 31da907

Browse files
Yikundongjoon-hyun
authored andcommitted
[SPARK-34820][K8S][R] add apt-update before gnupg install
### What changes were proposed in this pull request? We added the gnupg installation in apache#30130 , we should do apt update before gnupg isntallation, otherwise we will get a fetch error when package is updated. See more in: [1] http://apache-spark-developers-list.1001551.n3.nabble.com/K8s-Integration-test-is-unable-to-run-because-of-the-unavailable-libs-td30986.html ### Why are the changes needed? add a apt-update cmd before gnupg installation to avoid invaild package cache list. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? K8s Integration test passed Closes apache#31923 from Yikun/SPARK-34820. Authored-by: Yikun Jiang <yikunkero@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent 85581f6 commit 31da907

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • resource-managers/kubernetes/docker/src/main/dockerfiles/spark/bindings/R

resource-managers/kubernetes/docker/src/main/dockerfiles/spark/bindings/R/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ RUN mkdir ${SPARK_HOME}/R
2727

2828
# Install R 3.6.3 (http://cloud.r-project.org/bin/linux/debian/)
2929
RUN \
30-
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran35/" >> /etc/apt/sources.list && \
30+
apt-get update && \
3131
apt install -y gnupg && \
32+
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran35/" >> /etc/apt/sources.list && \
3233
(apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF' || apt-key adv --keyserver keys.openpgp.org --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF') && \
3334
apt-get update && \
3435
apt install -y -t buster-cran35 r-base r-base-dev && \

0 commit comments

Comments
 (0)