File tree Expand file tree Collapse file tree 6 files changed +14
-12
lines changed
Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1- layout python3
2- # use sdk java 8 .0.232 .hs-adpt
1+ layout pyenv 3.9.0
2+ use sdk java 11 .0.9 .hs-adpt
33export VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS
44export SPARK_HOME=$( pwd) /.spark
55export PATH=$SPARK_HOME /bin:$VBOXMANAGE :$PATH
Original file line number Diff line number Diff line change 1+ export DOCKER_BUILDKIT=1
2+ export COMPOSE_DOCKER_CLI_BUILD=1
Original file line number Diff line number Diff line change 1- FROM openjdk:8 -jdk-slim
1+ FROM openjdk:11 -jdk-slim
22LABEL maintainer=
"Luis Belloch <[email protected] >" 33
44ENV DEBIAN_FRONTEND=noninteractive
55RUN apt-get update && \
66 apt-get install -y --no-install-recommends python3-software-properties python3-numpy curl && \
77 rm -rf /var/lib/apt/lists/*
88
9- ARG SPARK_VERSION=2.4.5
9+ ARG SPARK_VERSION=3.0.1
1010ENV SPARK_HOME=/opt/spark
11- RUN mkdir -p /opt/spark && curl -s http ://apache.rediris.es /spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz | tar -xz -C "${SPARK_HOME}" --strip-components=1
11+ RUN mkdir -p /opt/spark && curl -s https ://downloads. apache.org /spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz | tar -xz -C "${SPARK_HOME}" --strip-components=1
1212ENV PATH=$SPARK_HOME/bin:$SPARK_HOME/sbin:$PATH
1313
1414RUN cp "${SPARK_HOME}/conf/log4j.properties.template" "${SPARK_HOME}/conf/log4j.properties" && \
Original file line number Diff line number Diff line change 1- SPARK_VERSION: =2.4.5
2- COURSE_VERSION: =2020.1
1+ SPARK_VERSION: =3.0.1
2+ COURSE_VERSION: =2020.12
33IMAGE_NAME: =luisbelloch/spark
44
55.PHONY : help
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
3- SPARK_URL=${SPARK_URL:- http :// apache.rediris.es / spark/ spark-2.4.5 / spark-2.4.5 -bin-hadoop2.7.tgz}
3+ SPARK_URL=${SPARK_URL:- https :// downloads. apache.org / spark/ spark-3.0.1 / spark-3.0.1 -bin-hadoop2.7.tgz}
44SPARK_PKG=${SPARK_URL##*/ }
55SPARK_HOME=${SPARK_HOME:- $(pwd)/ .spark}
66
Original file line number Diff line number Diff line change 22- hosts : all
33 vars :
44 spark_home : /opt/spark
5- spark_pkg_name : spark-2.4.5 -bin-hadoop2.7
6- spark_pkg_url : http ://apache.rediris.es /spark/spark-2.4.5 /spark-2.4.5 -bin-hadoop2.7.tgz
5+ spark_pkg_name : spark-3.0.1 -bin-hadoop2.7
6+ spark_pkg_url : https ://downloads. apache.org /spark/spark-3.0.1 /spark-3.0.1 -bin-hadoop2.7.tgz
77
88 tasks :
99 - name : Update all packages to the latest version
2020 update_cache : yes
2121 force_apt_get : true
2222
23- - name : Install AdoptOpenJDK 8
23+ - name : Install AdoptOpenJDK 11
2424 become : true
2525 block :
2626 - name : Import keys
3333 state : present
3434 - name : Install package
3535 apt :
36- name : ['adoptopenjdk-8 -hotspot', 'ca-certificates']
36+ name : ['adoptopenjdk-11 -hotspot', 'ca-certificates']
3737 state : latest
3838 update_cache : yes
3939 force_apt_get : true
You can’t perform that action at this time.
0 commit comments