-
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.
finished mango container and added makefiles
- Loading branch information
1 parent
807ef4c
commit 542556e
Showing
7 changed files
with
146 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM bigdatagenomics/miniconda3-maven3-openjdk8 | ||
|
||
MAINTAINER Alyssa Morrow, [email protected] | ||
|
||
# Environment Variables | ||
ARG SPARK_VERSION | ||
ARG HADOOP_VERSION | ||
ARG COVERALLS_REPO_TOKEN | ||
ARG WORKSPACE | ||
|
||
WORKDIR /home | ||
|
||
# Install make and pip/python dependencies | ||
# uuid-runtime: for unique identifiers used in conda envs | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
make \ | ||
python3.5 \ | ||
python3-pip \ | ||
nodejs \ | ||
uuid-runtime \ | ||
python-tk \ | ||
chromium | ||
|
||
# set chromium environment variable for mango-pileup karma tests | ||
ENV CHROME_BIN=/usr/bin/chromium | ||
|
||
# install node/npm | ||
RUN conda install -y nodejs | ||
|
||
ENTRYPOINT ["${WORKSPACE}/scripts/jenkins-test"] |
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,21 @@ | ||
# Definitions | ||
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ") | ||
name = bigdatagenomics/mango-jenkins | ||
tag = 0.0.1--${git_commit} | ||
build_tool = runtime-container.DONE | ||
|
||
# Steps | ||
build: Dockerfile | ||
cd ../miniconda3-maven3-openjdk8 && make build | ||
docker build -t ${name}:${tag} . | ||
-docker rmi ${name}:latest | ||
docker tag ${name}:${tag} ${name}:latest | ||
touch ${build_tool} | ||
|
||
clean: | ||
docker rmi -f ${name}:${tag} ${name}:${tag} | ||
|
||
push: build | ||
# Requires ~/.dockercfg | ||
docker push ${name}:${tag} | ||
docker push ${name}:latest |
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,31 @@ | ||
This directory contains the docker images for | ||
[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, 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 -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 | ||
``` |
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,20 @@ | ||
# Definitions | ||
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ") | ||
name = bigdatagenomics/maven3-openjdk8-alpine | ||
tag = 0.0.1--${git_commit} | ||
build_tool = runtime-container.DONE | ||
|
||
# Steps | ||
build: Dockerfile | ||
docker build -t ${name}:${tag} . | ||
-docker rmi ${name}:latest | ||
docker tag ${name}:${tag} ${name}:latest | ||
touch ${build_tool} | ||
|
||
clean: | ||
docker rmi -f ${name}:${tag} ${name}:${tag} | ||
|
||
push: build | ||
# Requires ~/.dockercfg | ||
docker push ${name}:${tag} | ||
docker push ${name}:latest |
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,20 @@ | ||
# Definitions | ||
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ") | ||
name = bigdatagenomics/maven3-openjdk8 | ||
build_tool = runtime-container.DONE | ||
tag = 0.0.1--${git_commit} | ||
|
||
# Steps | ||
build: Dockerfile | ||
docker build -t ${name}:${tag} . | ||
-docker rmi ${name}:latest | ||
docker tag ${name}:${tag} ${name}:latest | ||
touch ${build_tool} | ||
|
||
clean: | ||
docker rmi -f ${name}:${tag} ${name}:${tag} | ||
|
||
push: build | ||
# Requires ~/.dockercfg | ||
docker push ${name}:${tag} | ||
docker push ${name}:latest |
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,22 @@ | ||
# Definitions | ||
build_output = ${runtime_path}/miniconda3-maven3-openjdk8 | ||
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ") | ||
name = bigdatagenomics/miniconda3-maven3-openjdk8 | ||
tag = 0.0.1--${git_commit} | ||
build_tool = runtime-container.DONE | ||
|
||
# Steps | ||
build: Dockerfile | ||
cd ../maven3-openjdk8 && make build | ||
docker build -t ${name}:${tag} . | ||
-docker rmi ${name}:latest | ||
docker tag ${name}:${tag} ${name}:latest | ||
touch ${build_tool} | ||
|
||
clean: | ||
docker rmi -f ${name}:${tag} ${name}:${tag} | ||
|
||
push: build | ||
# Requires ~/.dockercfg | ||
docker push ${name}:${tag} | ||
docker push ${name}:latest |