Skip to content

Commit

Permalink
Updated dockerfiles to use OpenJDK instead of Oracle Java
Browse files Browse the repository at this point in the history
  • Loading branch information
dskola committed Apr 23, 2019
1 parent 45d311c commit 0e97404
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 65 deletions.
52 changes: 29 additions & 23 deletions Dockerfile
@@ -1,30 +1,36 @@
FROM ubuntu:16.04

RUN apt-get update && apt-get upgrade -y
RUN apt-get install build-essential zlib1g-dev libbz2-dev pkg-config cmake libncurses5-dev autoconf -y
RUN apt-get install git bzip2 wget -y
RUN apt-get install python2.7 python2.7-dev python \
python-setuptools \
python-pip \
python-psutil \
cython \
python-numpy \
python-pandas \
python-distribute \
python-pysam \
python-scipy \
-y
RUN apt-get install software-properties-common python-software-properties -y
RUN apt-get clean -y
RUN apt-get update && \
apt-get install -y \
autoconf \
build-essential \
bzip2 \
cmake \
cython \
git \
libbz2-dev \
libncurses5-dev \
openjdk-8-jdk \
pkg-config \
python \
python2.7 \
python2.7-dev \
python-setuptools \
python-pip \
python-psutil \
python-numpy \
python-pandas \
python-distribute \
python-pysam \
python-software-properties \
python-scipy \
software-properties-common \
wget \
zlib1g-dev && \
apt-get clean -y

RUN pip install bx-python

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
RUN pip install bx-python

# copy git repository into the image
RUN mkdir -p /opt/hap.py-source
Expand Down
45 changes: 26 additions & 19 deletions Dockerfile.centos6
Expand Up @@ -4,30 +4,43 @@ ENV HOME /root
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN yum install -y wget curl tar gzip bzip2 which perl

RUN mkdir -p /opt/illumina/haplocompare && \
RUN yum install -y \
bzip2 \
bzip2-devel \
centos-release-scl \
cmake \
curl \
devtoolset-8-gcc \
devtoolset-3-binutils \
devtoolset-8-gcc-c++ \
devtoolset-8-gcc-gfortran \
git \
gzip \
java-1.8.0-openjdk \
ncurses-devel \
perl \
tar \
wget \
which \
zlib-devel \

RUN yum upgrade -y && yum update -y && yum clean all

RUN mkdir -p /opt/illumina/haplocompare && \
cd /opt/illumina/haplocompare && \
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && \
bash Miniconda2-latest-Linux-x86_64.sh -b -p /opt/miniconda2

ENV PATH /opt/miniconda2/bin:${PATH}

RUN yum install -y centos-release-scl && \
yum install -y devtoolset-3-gcc devtoolset-3-binutils && \
yum install -y devtoolset-3-gcc-c++ devtoolset-3-gcc-gfortran && \
yum install -y cmake bzip2-devel ncurses-devel zlib-devel git

RUN conda config --add channels bioconda && \
conda install -y cython numpy scipy biopython matplotlib pandas pysam bx-python pyvcf cyvcf2 nose

RUN yum upgrade -y && yum update -y && yum clean all
RUN conda config --add channels bioconda && \
conda install -y cython numpy scipy biopython matplotlib pandas pysam bx-python pyvcf cyvcf2 nose

COPY . /opt/illumina/haplocompare/hap.py-source
WORKDIR /opt/illumina/haplocompare/hap.py-source

# patch samtools for centos 6
RUN cd external && \
RUN cd external && \
tar xvzf samtools.tar.gz && \
cd samtools && \
cat Makefile | sed 's/-ldl/-ldl -ltinfo/' > Makefile.bak && \
Expand All @@ -36,12 +49,6 @@ RUN cd external && \
rm -f samtools.tar.gz && \
tar czvf samtools.tar.gz samtools


ENV JDK_VERSION 8u11
ENV JDK_BUILD_VERSION b12
RUN curl -LO "http://download.oracle.com/otn-pub/java/jdk/$JDK_VERSION-$JDK_BUILD_VERSION/jdk-$JDK_VERSION-linux-x64.rpm" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && rpm -i jdk-$JDK_VERSION-linux-x64.rpm && rm -f jdk-$JDK_VERSION-linux-x64.rpm && yum clean all
ENV JAVA_HOME /usr/java/default

# get + install ant
WORKDIR /opt
RUN wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.7-bin.tar.gz && \
Expand Down
51 changes: 28 additions & 23 deletions Dockerfile.ubuntu-with-tests
@@ -1,31 +1,36 @@
FROM ubuntu:16.04

RUN apt-get update && apt-get upgrade -y
RUN apt-get install build-essential zlib1g-dev libbz2-dev pkg-config cmake libncurses5-dev autoconf -y
RUN apt-get install git bzip2 wget -y
RUN apt-get install python2.7 python2.7-dev python \
python-setuptools \
python-pip \
python-psutil \
cython \
python-numpy \
python-pandas \
python-distribute \
python-pysam \
python-scipy \
-y
RUN apt-get install software-properties-common python-software-properties -y
RUN apt-get clean -y
RUN apt-get update && \
apt-get install -y \
autoconf \
build-essential \
bzip2 \
cmake \
cython \
git \
libbz2-dev \
libncurses5-dev \
openjdk-8-jdk \
pkg-config \
python \
python2.7 \
python2.7-dev \
python-setuptools \
python-pip \
python-psutil \
python-numpy \
python-pandas \
python-distribute \
python-pysam \
python-software-properties \
python-scipy \
software-properties-common \
wget \
zlib1g-dev && \
apt-get clean -y

RUN pip install bx-python

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer

# copy git repository into the image
RUN mkdir -p /opt/hap.py-source
COPY . /opt/hap.py-source/
Expand Down

0 comments on commit 0e97404

Please sign in to comment.