forked from chrisamiller/docker-homer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (27 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:focal
MAINTAINER Chris Miller <[email protected]>
LABEL Image for homer
# annotation data is too large to include in this image, so it
# requires a directory to be mounted at /opt/homerdata/ containing
# - config.txt - homer configuration file with directories pointing to paths like "data/accession"
# - data - folder containing homer annotation data files
# at WUSTL, this can be provided by providing the following in an analysis-project configuration:
# docker_volumes: "/gscmnt/gc2560/core/annotation_data/homer:/opt/homerdata"
# or outside the pipelines:
# LSF_DOCKER_VOLUMES="$LSF_DOCKER_VOLUMES /gscmnt/gc2560/core/annotation_data/homer:/opt/homerdata"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y libnss-sss samtools r-base r-base-dev tabix wget libssl-dev libcurl4-openssl-dev libxml2-dev && apt-get clean all
#set timezone to CDT to avoid confusion
#LSF: Java bug that need to change the /etc/timezone.
#/etc/localtime is not enough.
RUN ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime && \
echo "America/Chicago" > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
ADD rpackages.R /tmp/
RUN R -f /tmp/rpackages.R
#install homer
RUN mkdir /opt/homer/ && cd /opt/homer && wget http://homer.ucsd.edu/homer/configureHomer.pl && /usr/bin/perl configureHomer.pl -install
#softlink config file and data directory
RUN rm -rf /opt/homer/data && ln -s /opt/homerdata/data /opt/homer/data
RUN rm -f /opt/homer/config.txt && ln -s /opt/homerdata/config.txt /opt/homer/config.txt
ENV PATH=${PATH}:/opt/homer/bin/