-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8eec9d
commit e6d76f9
Showing
2 changed files
with
21 additions
and
13 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 |
---|---|---|
@@ -1,18 +1,31 @@ | ||
This directory contains the docker images for | ||
[Mango](https://www.github.com/bigdatagenomics/mango). These containers build | ||
the mango codebase from HEAD, and then run the mango-submit scripts that submit | ||
the code/command to a running Spark cluster. | ||
[Mango](https://www.github.com/bigdatagenomics/mango-jenkins). This container contains | ||
all requirements for the [Mango](https://github.com/bigdatagenomics/mango) build | ||
for running with Jenkins. | ||
|
||
Running | ||
=== | ||
|
||
When the runtime container is run, a port should be opened for the Mango driver | ||
to communicate with the [Spark master](../apache-spark-master/README.md). The | ||
number of this port should be passed to mango as the Spark option | ||
`--conf spark.driver.port <portnumber>`. | ||
When the runtime container is run, the following environment variables should be | ||
specified: | ||
|
||
- SPARK_VERSION: Spark Version | ||
- HADOOP_VERSION: Hadoop version | ||
- COVERALLS_REPO_TOKEN: Token for Coveralls | ||
- WORKSPACE: Workspace where the current mango repository is pulled | ||
|
||
|
||
An example command to run mango Jenkins tests is: | ||
|
||
``` | ||
docker run bigdatagenomics/mango:latest | ||
docker run -v $WORKSPACE:${WORKSPACE} \ | ||
-e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \ | ||
-e WORKSPACE=${WORKSPACE} \ | ||
-e SPARK_VERSION=${SPARK_VERSION} \ | ||
-e HADOOP_VERSION=${HADOOP_VERSION} \ | ||
-e SCALAVER=${SCALAVER} \ | ||
--entrypoint=${WORKSPACE}/scripts/jenkins-test \ | ||
bigdatagenomics/mango-jenkins:latest | ||
``` |