-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (35 loc) · 1.48 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
FROM ubuntu:latest
ENV PACKAGES wget make xz-utils unzip g++ python python-matplotlib perl ca-certificates
RUN apt-get update -y && apt-get install -y --no-install-recommends ${PACKAGES}
ENV QUAST_URL https://github.com/ablab/quast/archive/release_4.0.zip
ENV DIR /usr/local/quast
RUN mkdir ${DIR}
RUN cd ${DIR} && \
wget --quiet --no-check-certificate ${QUAST_URL} -O quast.zip && \
unzip quast.zip && mv quast-release_4.0/* . && \
cd libs/MUMmer3.23-linux && make CPPFLAGS="-O3 -DSIXTYFOURBITS"
COPY ./run /evaluate.sh
ENV CONVERT https://github.com/bronze1man/yaml2json/raw/master/builds/linux_386/yaml2json
# download yaml2json and make it executable
RUN cd /usr/local/bin && wget --quiet ${CONVERT} && chmod 700 yaml2json
ENV JQ http://stedolan.github.io/jq/download/linux64/jq
# download jq and make it executable
RUN cd /usr/local/bin && wget --quiet ${JQ} && chmod 700 jq
ADD /Taskfile /
# Locations for biobox file validator
ENV VALIDATOR /bbx/validator/
ENV BASE_URL https://s3-us-west-1.amazonaws.com/bioboxes-tools/validate-biobox-file
ENV VERSION 0.x.y
RUN mkdir -p ${VALIDATOR}
# download the validate-biobox-file binary and extract it to the directory $VALIDATOR
RUN wget \
--quiet \
--output-document -\
${BASE_URL}/${VERSION}/validate-biobox-file.tar.xz \
| tar xJf - \
--directory ${VALIDATOR} \
--strip-components=1
ENV PATH ${PATH}:${VALIDATOR}
ADD schema.yml /
COPY ./metaquast-scaffold /metaquast-scaffold
ENTRYPOINT ["/evaluate.sh"]