Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile enhancements #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
FROM ubuntu:14.04
MAINTAINER Simon Sadedin "[email protected]"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update;
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN apt-get update && \
apt-get install -y software-properties-common python-software-properties && \
apt-get install -y curl wget && \
apt-get install -y apt-transport-https && apt-get update
RUN apt-get install -y libcurl4-openssl-dev && apt-get install -y libxml2-dev && apt-get install -y r-base
ENV SDKMAN_DIR="/usr/local/sdkman"
RUN curl -s "https://get.sdkman.io" | bash && \
sed -i -e 's/sdkman_auto_answer=false/sdkman_auto_answer=true/g' /root/.sdkman/etc/config && \
bash -c 'source "/root/.sdkman/bin/sdkman-init.sh"; sdk install java 7u141-zulu;'
sed -i -e 's/sdkman_auto_answer=false/sdkman_auto_answer=true/g' /usr/local/sdkman/etc/config && \
bash -c 'source "/usr/local/sdkman/bin/sdkman-init.sh"; sdk install java 7u141-zulu;'
RUN apt-get install -y git
RUN cd /usr/local && \
git clone https://github.com/ssadedin/ximmer.git && cd ximmer && ./bin/install -q && \
echo 'JAVA="/root/.sdkman/candidates/java/current/bin/java"' >> /usr/local/ximmer/eval/pipeline/config.groovy && \
echo 'java { executable="/root/.sdkman/candidates/java/current/bin/java" }' >> /usr/local/ximmer/eval/pipeline/bpipe.config && \
echo 'JAVA="/usr/local/sdkman/candidates/java/current/bin/java"' >> /usr/local/ximmer/eval/pipeline/config.groovy && \
echo 'java { executable="/usr/local/sdkman/candidates/java/current/bin/java" }' >> /usr/local/ximmer/eval/pipeline/bpipe.config && \
cd /usr/local/ximmer; mkdir cache && cd cache && wget 'http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/dgvMerged.txt.gz' && \
cd /usr/local/ximmer/cache && wget 'http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/refGene.txt.gz'
ENV PATH="/usr/local/ximmer/bin:${PATH}"
ENV JAVA_HOME=/root/.sdkman/candidates/java/current/bin/java
ENV JAVA_HOME=/usr/local/sdkman/candidates/java/current/bin/java