forked from BD2KGenomics/cgl-docker-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request BD2KGenomics#292 from akmorrow13/spark_2.4.3
Update Mango to Spark 2.4.3
- Loading branch information
Showing
5 changed files
with
30 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,16 @@ MAINTAINER Alyssa Morrow, [email protected] | |
RUN mkdir /opt/cgl-docker-lib | ||
COPY mango /opt/cgl-docker-lib/mango | ||
|
||
WORKDIR /opt/cgl-docker-lib/mango | ||
|
||
# copy spark | ||
COPY apache-spark /opt/cgl-docker-lib/apache-spark | ||
|
||
ENV SPARK_HOME /opt/cgl-docker-lib/apache-spark | ||
|
||
# put mango jar on the pyspark path for packaging | ||
ENV ASSEMBLY_DIR /opt/cgl-docker-lib/mango/mango-assembly/target | ||
|
||
ENV ASSEMBLY_JAR "$(ls -1 "$ASSEMBLY_DIR" | grep "^mango-assembly[0-9A-Za-z\_\.-]*\.jar$" | grep -v javadoc | grep -v sources || true)" | ||
ENV PYSPARK_SUBMIT_ARGS "--jars ${ASSEMBLY_DIR}/${ASSEMBLY_JAR} --driver-class-path ${ASSEMBLY_DIR}/${ASSEMBLY_JAR} pyspark-shell" | ||
|
||
|
@@ -22,17 +25,23 @@ ENV PYTHONPATH ${SPARK_HOME}/python:${SPARK_HOME}/python/lib/py4j-0.10.4-src.zip | |
#environment variables PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON | ||
ENV PYSPARK_PYTHON /usr/bin/python3 | ||
|
||
# Install make and pip/python dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
make \ | ||
python3.5 \ | ||
python3-pip \ | ||
npm \ | ||
nodejs \ | ||
python-tk | ||
git \ | ||
make \ | ||
python3.5 \ | ||
python3-pip \ | ||
python-tk \ | ||
curl | ||
|
||
# get nodejs v8.X | ||
RUN apt-cache policy nodejs | ||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | ||
RUN apt-cache policy nodejs | ||
|
||
|
||
# Install make and pip/python dependencies | ||
RUN apt-get install -y nodejs | ||
|
||
# alias python to python3.6 | ||
RUN alias pip=pip3 | ||
RUN alias python=python3 | ||
|
@@ -43,13 +52,9 @@ RUN echo '#!/bin/bash\npython3 "$@"' > /usr/bin/python && \ | |
RUN echo '#!/bin/bash\npip3 "$@"' > /usr/bin/pip && \ | ||
chmod +x /usr/bin/pip | ||
|
||
RUN pip | ||
RUN ln -s /usr/bin/nodejs /usr/bin/node | ||
|
||
# set permissions for running npm. Required for mango-viz | ||
RUN npm config set bdgenomics.mango.pileup:unsafe-perm | ||
|
||
|
||
# prepare mango-viz and mango-python | ||
WORKDIR /opt/cgl-docker-lib/mango/mango-python | ||
RUN make prepare && make develop | ||
|
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