-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (46 loc) · 1.49 KB
/
Dockerfile
File metadata and controls
64 lines (46 loc) · 1.49 KB
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
62
63
64
FROM kbase/kbase:sdkbase2.latest
LABEL maintainer="KBase Developer"
# -----------------------------------------
# In this section, you can install any system dependencies required
# to run your App. For instance, you could place an apt-get update or
# install line here, a git checkout to download code, or run any other
# installation scripts.
# Update
RUN apt-get update
# udpate certs
RUN apt-get upgrade -y
RUN sed -i 's/\(.*DST_Root_CA_X3.crt\)/!\1/' /etc/ca-certificates.conf
RUN update-ca-certificates
# Here we install a python coverage tool and an
# https library that is out of date in the base image.
RUN pip install coverage
# Install xvfb for matplotlib pdfs
# apt-get -y install xvfb
RUN apt-get update && \
apt-get -y install xvfb python-qt4
# For kaiju bin
WORKDIR /kb/module
RUN \
git clone --single-branch --depth 1 --branch v1.9.0 https://github.com/bioinformatics-centre/kaiju.git && \
cd kaiju/src && \
make
# For Krona Tools
WORKDIR /kb/module
RUN \
git clone https://github.com/marbl/Krona && \
cd Krona/KronaTools && \
./install.pl
# ./install.pl && \
# mkdir taxonomy && \
# ./updateTaxonomy.sh && \
# ./updateAccessions.sh
# For kaiju dbs (rest of db installation to ref data mount in entrypoint.sh init script)
RUN mkdir -p /data/kaijudb
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]