Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +11 -8
- Dockerfile.worker +7 -5
Dockerfile
CHANGED
|
@@ -21,23 +21,26 @@ RUN Rscript -e 'suppressPackageStartupMessages({library(DESeq2); library(Complex
|
|
| 21 |
# gnina resolves its compute device through OpenCL, so a CPU OpenCL ICD (pocl,
|
| 22 |
# installed above) is required even with --no_gpu: without one the binary aborts
|
| 23 |
# with "no OpenCL platforms found" at run time rather than at install time.
|
| 24 |
-
# `gnina --version`
|
| 25 |
-
#
|
| 26 |
-
#
|
|
|
|
| 27 |
ARG INSTALL_GNINA=1
|
| 28 |
RUN if [ "$INSTALL_GNINA" = "0" ]; then \
|
| 29 |
echo "gnina skipped (INSTALL_GNINA=0); Vina/Python rescoring fallback in use"; \
|
| 30 |
else \
|
|
|
|
| 31 |
wget -q "https://github.com/gnina/gnina/releases/download/v1.3.2/gnina.1.3.2" -O /usr/local/bin/gnina && \
|
| 32 |
chmod +x /usr/local/bin/gnina || { echo "ERROR: gnina download failed"; exit 1; }; \
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
| 34 |
if ! clinfo -l 2>/dev/null | grep -qi "pocl\|portable computing language"; then \
|
| 35 |
-
echo "ERROR: no CPU OpenCL platform visible; gnina would fail at run time.
|
| 36 |
-
clinfo -l 2>&1 | head -20; \
|
| 37 |
exit 1; \
|
| 38 |
fi; \
|
| 39 |
-
echo "gnina installed
|
| 40 |
-
clinfo -l | head -3; \
|
| 41 |
fi
|
| 42 |
|
| 43 |
# MAFFT (local MSA) — portable Linux package, faster and more reliable than remote EBI endpoints.
|
|
|
|
| 21 |
# gnina resolves its compute device through OpenCL, so a CPU OpenCL ICD (pocl,
|
| 22 |
# installed above) is required even with --no_gpu: without one the binary aborts
|
| 23 |
# with "no OpenCL platforms found" at run time rather than at install time.
|
| 24 |
+
# `gnina --version` exits before OpenCL is initialised, so it cannot prove the CPU
|
| 25 |
+
# device gnina needs is present -- clinfo can, and that is the check that gates the
|
| 26 |
+
# build. The version output is informational: its exit status is not a reliable
|
| 27 |
+
# health signal and must not fail an otherwise good image.
|
| 28 |
ARG INSTALL_GNINA=1
|
| 29 |
RUN if [ "$INSTALL_GNINA" = "0" ]; then \
|
| 30 |
echo "gnina skipped (INSTALL_GNINA=0); Vina/Python rescoring fallback in use"; \
|
| 31 |
else \
|
| 32 |
+
echo "gnina: downloading ~1.4 GB release asset"; \
|
| 33 |
wget -q "https://github.com/gnina/gnina/releases/download/v1.3.2/gnina.1.3.2" -O /usr/local/bin/gnina && \
|
| 34 |
chmod +x /usr/local/bin/gnina || { echo "ERROR: gnina download failed"; exit 1; }; \
|
| 35 |
+
echo "gnina: size $(stat -c %s /usr/local/bin/gnina) bytes"; \
|
| 36 |
+
echo "gnina: version output -> $(gnina --version 2>&1 | head -1)"; \
|
| 37 |
+
echo "gnina: OpenCL platforms ->"; \
|
| 38 |
+
clinfo -l 2>&1 | head -5; \
|
| 39 |
if ! clinfo -l 2>/dev/null | grep -qi "pocl\|portable computing language"; then \
|
| 40 |
+
echo "ERROR: no CPU OpenCL platform visible; gnina would fail at run time."; \
|
|
|
|
| 41 |
exit 1; \
|
| 42 |
fi; \
|
| 43 |
+
echo "gnina: installed and a CPU OpenCL device is available"; \
|
|
|
|
| 44 |
fi
|
| 45 |
|
| 46 |
# MAFFT (local MSA) — portable Linux package, faster and more reliable than remote EBI endpoints.
|
Dockerfile.worker
CHANGED
|
@@ -20,16 +20,18 @@ ARG INSTALL_GNINA=1
|
|
| 20 |
RUN if [ "$INSTALL_GNINA" = "0" ]; then \
|
| 21 |
echo "gnina skipped (INSTALL_GNINA=0); Vina/Python rescoring fallback in use"; \
|
| 22 |
else \
|
|
|
|
| 23 |
wget -q "https://github.com/gnina/gnina/releases/download/v1.3.2/gnina.1.3.2" -O /usr/local/bin/gnina && \
|
| 24 |
chmod +x /usr/local/bin/gnina || { echo "ERROR: gnina download failed"; exit 1; }; \
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
if ! clinfo -l 2>/dev/null | grep -qi "pocl\|portable computing language"; then \
|
| 27 |
-
echo "ERROR: no CPU OpenCL platform visible; gnina would fail at run time.
|
| 28 |
-
clinfo -l 2>&1 | head -20; \
|
| 29 |
exit 1; \
|
| 30 |
fi; \
|
| 31 |
-
echo "gnina installed
|
| 32 |
-
clinfo -l | head -3; \
|
| 33 |
fi
|
| 34 |
|
| 35 |
RUN wget -q "https://mafft.cbrc.jp/alignment/software/mafft-7.526-linux.tgz" -O /tmp/mafft.tgz && \
|
|
|
|
| 20 |
RUN if [ "$INSTALL_GNINA" = "0" ]; then \
|
| 21 |
echo "gnina skipped (INSTALL_GNINA=0); Vina/Python rescoring fallback in use"; \
|
| 22 |
else \
|
| 23 |
+
echo "gnina: downloading ~1.4 GB release asset"; \
|
| 24 |
wget -q "https://github.com/gnina/gnina/releases/download/v1.3.2/gnina.1.3.2" -O /usr/local/bin/gnina && \
|
| 25 |
chmod +x /usr/local/bin/gnina || { echo "ERROR: gnina download failed"; exit 1; }; \
|
| 26 |
+
echo "gnina: size $(stat -c %s /usr/local/bin/gnina) bytes"; \
|
| 27 |
+
echo "gnina: version output -> $(gnina --version 2>&1 | head -1)"; \
|
| 28 |
+
echo "gnina: OpenCL platforms ->"; \
|
| 29 |
+
clinfo -l 2>&1 | head -5; \
|
| 30 |
if ! clinfo -l 2>/dev/null | grep -qi "pocl\|portable computing language"; then \
|
| 31 |
+
echo "ERROR: no CPU OpenCL platform visible; gnina would fail at run time."; \
|
|
|
|
| 32 |
exit 1; \
|
| 33 |
fi; \
|
| 34 |
+
echo "gnina: installed and a CPU OpenCL device is available"; \
|
|
|
|
| 35 |
fi
|
| 36 |
|
| 37 |
RUN wget -q "https://mafft.cbrc.jp/alignment/software/mafft-7.526-linux.tgz" -O /tmp/mafft.tgz && \
|