You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN git clone -b master https://github.com/qiita-spots/qiita_client.git
48
-
RUN cd qiita_client && pip install --no-cache-dir .
48
+
RUN cd /qiita_client && pip install --no-cache-dir .
49
49
50
50
RUN pip install https://github.com/qiita-spots/qiita-files/archive/master.zip
51
51
RUN git clone https://github.com/qiita-spots/qp-target-gene.git
@@ -57,9 +57,19 @@ RUN pip install pip-system-certs
57
57
58
58
WORKDIR /
59
59
60
+
# qiime 1.9.1 comes with https://pypi.org/project/qiime-default-reference/ as dependency, which is ~184MB
61
+
# we "hide" it here, as necessary files will be downloaded from ftp.microbio.me/greengenes_release while setting up qiita anyway
62
+
RUN pip download --dest /qiime_default_reference qiime_default_reference \
63
+
&& cd /qiime_default_reference \
64
+
&& tar xzvf *.tar.gz \
65
+
&& cd qiime-default-reference-0.1.3 \
66
+
&& for fzip in `find . -type f -name "97*"`; do fplain=`echo $fzip | sed "s|.gz$||g"`; echo "content erased to generate small wheel file, as reference shall be mounted to target container later on." > $fplain; gzip -f $fplain; done
67
+
60
68
COPY requirements.txt ./requirements.txt
61
69
RUN pip wheel --no-cache-dir --wheel-dir /wheels -r requirements.txt
62
70
71
+
# download sortmerna / index_db sources for version 2.0 and re-compile statically as different glibc and libstdc++ couse issues
72
+
RUN wget https://github.com/sortmerna/sortmerna/archive/refs/tags/2.0.tar.gz && tar xzvf 2.0.tar.gz && cd /sortmerna-2.0 && ./configure LDFLAGS=" -static " && make -j
63
73
64
74
# ==========================
65
75
# Stage 2: Runtime
@@ -73,23 +83,18 @@ RUN mkdir -p /usr/share/man/man1 && \
# download GG13.8 reference sets from ftp://ftp.microbio.me/greengenes_release/gg_13_8_otus, instead of storing these large files within the qp-target-gene image 149 MB
0 commit comments