-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spark slave and add this to the config map in the template.
- Loading branch information
Showing
3 changed files
with
69 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM openshift/jenkins-slave-base-centos7 | ||
|
||
LABEL maintainer="dat.tran@idealo.de" | ||
|
||
# Install miniconda | ||
USER root | ||
RUN yum install -y bzip2 gcc gcc-c++ | ||
|
||
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ | ||
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-4.3.31-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh && \ | ||
/opt/conda/bin/conda clean -tipsy | ||
|
||
RUN chmod -R 777 /opt/conda | ||
|
||
ENV PATH /opt/conda/bin:$PATH | ||
|
||
# Install spark | ||
ENV SPARK_HOME /opt/spark | ||
ENV SPARK_URL http://d3kbcqa49mib13.cloudfront.net/spark-2.2.0-bin-hadoop2.7.tgz | ||
ENV SPARK_FILENAME spark-2.2.0-bin-hadoop2.7.tgz | ||
ENV PATH $PATH:$SPARK_HOME/bin | ||
|
||
RUN mkdir $SPARK_HOME && \ | ||
curl $SPARK_URL > $SPARK_HOME/$SPARK_FILENAME && \ | ||
tar -xzf $SPARK_HOME/$SPARK_FILENAME --directory $SPARK_HOME --strip-components 1 && \ | ||
rm $SPARK_HOME/$SPARK_FILENAME | ||
|
||
USER 1001 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Spark Slave Image | ||
==================== | ||
|
||
This repository contains Dockerfiles for a Jenkins Slave Docker image intended for | ||
use with [OpenShift v3](https://github.com/openshift/origin) |