-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use hadoop image as based image for spark
- Loading branch information
1 parent
3d99b5e
commit d2921d6
Showing
4 changed files
with
9 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,25 @@ | ||
# To check running container: docker exec -it tube /bin/bash | ||
FROM quay.io/cdis/python:python3.9-buster-stable | ||
FROM quay.io/cdis/hadoop-base:v3.3.0 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
HADOOP_VERSION="3" \ | ||
HADOOP_SPARK_VERSION="3" \ | ||
ES_HADOOP_VERSION="8.3.3" \ | ||
SPARK_VERSION="3.3.0" | ||
|
||
ENV SPARK_INSTALLATION_URL="http://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" \ | ||
HADOOP_INSTALLATION_URL="http://archive.apache.org/dist/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz" \ | ||
ENV SPARK_INSTALLATION_URL="http://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_SPARK_VERSION}.tgz" \ | ||
SPARK_HOME="/spark" \ | ||
HADOOP_HOME="/hadoop" \ | ||
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/" | ||
|
||
RUN mkdir -p /usr/share/man/man1 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
software-properties-common \ | ||
libpq-dev \ | ||
build-essential \ | ||
libssl1.1 \ | ||
libgnutls30 \ | ||
ca-certificates-java \ | ||
openjdk-11-jdk \ | ||
openssh-server \ | ||
# dependency for pyscopg2 - which is dependency for sqlalchemy postgres engine | ||
libpq-dev \ | ||
wget \ | ||
git \ | ||
# dependency for cryptography | ||
libffi-dev \ | ||
# dependency for cryptography | ||
libssl-dev \ | ||
vim \ | ||
dnsutils \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget $SPARK_INSTALLATION_URL \ | ||
&& mkdir -p $SPARK_HOME \ | ||
&& tar -xvf spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz -C $SPARK_HOME --strip-components 1 \ | ||
&& rm spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz | ||
&& tar -xvf spark-${SPARK_VERSION}-bin-hadoop${HADOOP_SPARK_VERSION}.tgz -C $SPARK_HOME --strip-components 1 \ | ||
&& rm spark-${SPARK_VERSION}-bin-hadoop${HADOOP_SPARK_VERSION}.tgz | ||
|
||
RUN apt-get --only-upgrade install libpq-dev | ||
|
||
ENV PATH="${PATH}:${SPARK_HOME}/bin:${SPARK_HOME}/sbin:${HADOOP_HOME}/sbin:${HADOOP_HOME}/bin:${JAVA_HOME}/bin:${SCALA_HOME}/bin" | ||
|
||
|
||
RUN mkdir -p /var/run/sshd ${HADOOP_HOME}/hdfs ${HADOOP_HOME}/hdfs/data ${HADOOP_HOME}/hdfs/data/dfs ${HADOOP_HOME}/hdfs/data/dfs/namenode ${HADOOP_HOME}/logs | ||
|
||
ENV PYTHONHASHSEED 1 |