Skip to content

Commit 6598822

Browse files
author
Alyssa Morrow
committed
finished mango container and added makefiles
1 parent 807ef4c commit 6598822

File tree

7 files changed

+131
-1
lines changed

7 files changed

+131
-1
lines changed

mango-jenkins/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM bigdatagenomics/miniconda3-maven3-openjdk8
2+
3+
MAINTAINER Alyssa Morrow, [email protected]
4+
5+
# Environment Variables
6+
ARG SPARK_VERSION
7+
ARG HADOOP_VERSION
8+
ARG COVERALLS_REPO_TOKEN
9+
ARG WORKSPACE
10+
11+
WORKDIR /home
12+
13+
# Install make and pip/python dependencies
14+
# uuid-runtime: for unique identifiers used in conda envs
15+
RUN apt-get update && apt-get install -y \
16+
git \
17+
make \
18+
python3.5 \
19+
python3-pip \
20+
nodejs \
21+
uuid-runtime \
22+
python-tk \
23+
chromium
24+
25+
# set chromium environment variable for mango-pileup karma tests
26+
ENV CHROME_BIN=/usr/bin/chromium
27+
28+
# install node/npm
29+
RUN conda install -y nodejs
30+
31+
ENTRYPOINT ["${WORKSPACE}/scripts/jenkins-test"]

mango-jenkins/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Definitions
2+
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ")
3+
name = bigdatagenomics/mango-jenkins
4+
tag = 0.0.1--${git_commit}
5+
6+
# Steps
7+
build: Dockerfile
8+
cd ../miniconda3-maven3-openjdk8 && make build
9+
docker build -t ${name}:${tag} .
10+
11+
clean:
12+
docker rmi -f ${name}:${tag} ${name}:${tag}
13+
14+
push: build
15+
# Requires ~/.dockercfg
16+
docker push ${name}:${tag}
17+
docker push ${name}:latest

mango-jenkins/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
This directory contains the docker images for
2+
[Mango](https://www.github.com/bigdatagenomics/mango-jenkins). This container contains
3+
all requirements for the [Mango](https://github.com/bigdatagenomics/mango) build
4+
for running with Jenkins.
5+
6+
Running
7+
===
8+
9+
When the runtime container is run, the following environment variables should be
10+
specified:
11+
12+
- SPARK_VERSION: Spark Version
13+
- HADOOP_VERSION: Hadoop version
14+
- COVERALLS_REPO_TOKEN: Token for Coveralls
15+
- WORKSPACE: Workspace where the current mango repository is pulled
16+
17+
18+
An example command to run mango Jenkins tests is:
19+
20+
```
21+
22+
docker run -v $WORKSPACE:${WORKSPACE} \
23+
-e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \
24+
-e WORKSPACE=${WORKSPACE} \
25+
-e SPARK_VERSION=${SPARK_VERSION} \
26+
-e HADOOP_VERSION=${HADOOP_VERSION} \
27+
-e SCALAVER=${SCALAVER} \
28+
--entrypoint=${WORKSPACE}/scripts/jenkins-test \
29+
bigdatagenomics/mango-jenkins:latest
30+
31+
```

maven3-openjdk8-alpine/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Definitions
2+
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ")
3+
name = bigdatagenomics/maven3-openjdk8-alpine
4+
tag = 0.0.1--${git_commit}
5+
6+
# Steps
7+
build: Dockerfile
8+
docker build -t ${name}:${tag} .
9+
10+
clean:
11+
docker rmi -f ${name}:${tag} ${name}:${tag}
12+
13+
push: build
14+
# Requires ~/.dockercfg
15+
docker push ${name}:${tag}
16+
docker push ${name}:latest

maven3-openjdk8/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Definitions
2+
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ")
3+
name = bigdatagenomics/maven3-openjdk8
4+
tag = 0.0.1--${git_commit}
5+
6+
# Steps
7+
build: Dockerfile
8+
docker build -t ${name}:${tag} .
9+
10+
clean:
11+
docker rmi -f ${name}:${tag} ${name}:${tag}
12+
13+
push: build
14+
# Requires ~/.dockercfg
15+
docker push ${name}:${tag}
16+
docker push ${name}:latest

miniconda3-maven3-openjdk8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update --fix-missing && \
88
apt-get clean && \
99
rm -rf /var/lib/apt/lists/*
1010

11-
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh && \
11+
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh -O ~/miniconda.sh && \
1212
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
1313
rm ~/miniconda.sh && \
1414
/opt/conda/bin/conda clean -tipsy && \
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Definitions
2+
build_output = ${runtime_path}/miniconda3-maven3-openjdk8
3+
git_commit ?= $(shell git log --pretty=oneline -n 1 | cut -f1 -d " ")
4+
name = bigdatagenomics/miniconda3-maven3-openjdk8
5+
tag = 0.0.1--${git_commit}
6+
7+
8+
# Steps
9+
build: Dockerfile
10+
cd ../maven3-openjdk8 && make build
11+
docker build -t ${name}:${tag} .
12+
13+
clean:
14+
docker rmi -f ${name}:${tag} ${name}:${tag}
15+
16+
push: build
17+
# Requires ~/.dockercfg
18+
docker push ${name}:${tag}
19+
docker push ${name}:latest

0 commit comments

Comments
 (0)