-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
61 lines (49 loc) · 1.83 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM continuumio/miniconda3
RUN apt-get update \
&& apt-get install -y locales mercurial git python3-dev python3-pip libyaml-dev \
&& (curl https://sh.rustup.rs -sSf | sh -s -- -y) \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& useradd -ms /bin/bash metasub
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ADD cap_env.yml /tmp/environment.yml
# USER metasub
WORKDIR /home/metasub
RUN conda env create -f=/tmp/environment.yml
ENTRYPOINT [ "/bin/bash", "-c" ]
RUN mkdir /home/metasub/manual_tools
WORKDIR /home/metasub/manual_tools
RUN /bin/bash -c "source activate cap \
&& source $HOME/.cargo/env \
&& cargo install finch"
WORKDIR /home/metasub/manual_tools
RUN /bin/bash -c "source activate cap \
&& git clone https://github.com/cdeanj/resistomeanalyzer.git \
&& cd resistomeanalyzer \
&& make \
&& mv resistome /bin"
WORKDIR /home/metasub/manual_tools
RUN /bin/bash -c "source activate cap \
&& hg clone https://bitbucket.org/biobakery/metaphlan2 \
&& cd metaphlan2 \
&& mv metaphlan2.py /bin"
WORKDIR /home/metasub/manual_tools
RUN /bin/bash -c "source activate cap \
&& git clone https://github.com/snayfach/MicrobeCensus \
&& cd MicrobeCensus \
&& python setup.py install"
RUN /bin/bash -c "source activate cap \
&& pip install --ignore-installed PyYAML moduleultra==0.1.13"
RUN cd /home/metasub \
&& /bin/bash -c "source activate cap \
&& mkdir dbs \
&& mkdir base_repo \
&& mkdir repo \
&& cd /home/metasub/base_repo \
&& moduleultra init \
&& echo y | moduleultra install https://github.com/MetaSUB/MetaSUB_CAP \
&& moduleultra add pipeline metasub_cap"
ADD docker_pipeline_config.py /home/metasub/docker_pipeline_config.py
WORKDIR /home/metasub/repo
RUN /bin/bash -c "source activate cap"