From c83a5ab605b66029444697c9d95af14e6bc4ab7d Mon Sep 17 00:00:00 2001 From: Christian Kniep Date: Wed, 8 Jan 2025 11:34:20 +0100 Subject: [PATCH 1/5] pipe wget into bsdtar --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5510e36..add00ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04 as devel # Install essential packages RUN apt-get update \ - && apt-get install -y wget git unzip curl build-essential zlib1g-dev zstd \ + && apt-get install -y wget git unzip curl build-essential zlib1g-dev zstd libarchive-tools \ && rm -rf /var/lib/apt/lists/* # Build minimap2 @@ -15,8 +15,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && export PATH="/root/.cargo/bin:${PATH}" # Get libtorch -RUN wget -q -O libtorch.zip https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip \ - && unzip -q libtorch.zip && rm libtorch.zip \ +RUN wget -q -O-p https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xvf- \ && export LIBTORCH=/libtorch \ && export LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH From 2186bd346f4eed9f643290032b888a3b185b2e26 Mon Sep 17 00:00:00 2001 From: Christian Kniep Date: Wed, 8 Jan 2025 12:18:22 +0100 Subject: [PATCH 2/5] typo --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index add00ce..31466ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && export PATH="/root/.cargo/bin:${PATH}" # Get libtorch -RUN wget -q -O-p https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xvf- \ +RUN wget -q -O- https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xf- \ && export LIBTORCH=/libtorch \ && export LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH From bfdb0fabdf464973e25509cc9bba85e2d2ca8074 Mon Sep 17 00:00:00 2001 From: Christian Kniep Date: Wed, 8 Jan 2025 14:38:05 +0100 Subject: [PATCH 3/5] add LD_LIBRARY_PATH --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 31466ea..c0221c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN apt-get update \ # Set environment variables ENV LIBTORCH=/libs -ENV LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH +ENV LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH:/usr/local/cuda/compat # Labels LABEL Author="Dominik Stanojevic" From 12f2c3ad3ae2162c06f35f6a52088f545f272b9d Mon Sep 17 00:00:00 2001 From: Christian Kniep Date: Wed, 8 Jan 2025 18:39:14 +0100 Subject: [PATCH 4/5] change untar dir --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c0221c3..a665a25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && export PATH="/root/.cargo/bin:${PATH}" # Get libtorch -RUN wget -q -O- https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xf- \ +RUN wget -q -O- https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xf- -C / \ && export LIBTORCH=/libtorch \ && export LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH From ef5e43f0d4840808256ed04d4acae4ed5d0fcffa Mon Sep 17 00:00:00 2001 From: Christian Kniep Date: Wed, 8 Jan 2025 18:41:00 +0100 Subject: [PATCH 5/5] export in RUN have no effect --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a665a25..b982a70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && export PATH="/root/.cargo/bin:${PATH}" # Get libtorch -RUN wget -q -O- https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xf- -C / \ - && export LIBTORCH=/libtorch \ - && export LD_LIBRARY_PATH=${LIBTORCH}/lib:$LD_LIBRARY_PATH +RUN wget -q -O- https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcu117.zip |bsdtar -xf- -C / # Build herro # Copy files from host to container