-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker, simplify installation in dockerfile (#701)
* fix installation for CI / Docker Signed-off-by: Clement Fuji Tsang <[email protected]> * fix ci remaining cpu only problems Signed-off-by: Clement Fuji Tsang <[email protected]> --------- Signed-off-by: Clement Fuji Tsang <[email protected]>
- Loading branch information
Showing
8 changed files
with
32 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,6 @@ ENV PYTHON_VERSION=${PYTHON_VERSION} | |
ARG PYTORCH_VERSION=1.13.1 | ||
ENV PYTORCH_VERSION=${PYTORCH_VERSION} | ||
|
||
# Note: removing this line as it seems to cause a lot of problems. | ||
RUN sed -i -e 's|^deb http://[^.]*[.]ubuntu[.]com/ubuntu|deb https://urm.nvidia.com/artifactory/ubuntu-remote|' /etc/apt/sources.list | ||
|
||
RUN echo "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf \ | ||
&& if [ -f /etc/apt/sources.list.d/cuda.list ]; then \ | ||
rm /etc/apt/sources.list.d/cuda.list; \ | ||
|
@@ -51,22 +48,21 @@ RUN curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest | |
ENV PATH /opt/conda/bin:$PATH | ||
|
||
WORKDIR /tmp | ||
COPY ./tools/get_torchvision_ver.sh ./tools/check_torchlibs_versions.py ./ | ||
RUN CUDA_MAJOR="$(echo ${CUDA_VERSION} | cut -d'.' -f1)" && \ | ||
CUDA_MINOR="$(echo ${CUDA_VERSION} | cut -d'.' -f2)" && \ | ||
CUDA_TAG="$(echo ${CUDA_MAJOR}${CUDA_MINOR})" && \ | ||
TORCHVISION_VERSION=`./get_torchvision_ver.sh ${PYTORCH_VERSION}` && \ | ||
rm ./get_torchvision_ver.sh && \ | ||
pip install torch==${PYTORCH_VERSION}+cu${CUDA_TAG} torchvision==${TORCHVISION_VERSION}+cu${CUDA_TAG} \ | ||
-f https://download.pytorch.org/whl/cu${CUDA_TAG} -f https://download.pytorch.org/whl/torch_stable.html && \ | ||
python check_torchlibs_versions.py ${PYTORCH_VERSION} ${TORCHVISION_VERSION} ${CUDA_MAJOR}.${CUDA_MINOR} | ||
pip install --no-cache-dir torch==${PYTORCH_VERSION}+cu${CUDA_TAG} \ | ||
-f https://download.pytorch.org/whl/cu${CUDA_TAG} \ | ||
-f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
|
||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x --insecure | bash - \ | ||
&& apt-get install -y nodejs | ||
|
||
RUN conda list > conda_build.txt | ||
|
||
WORKDIR /kaolin | ||
|
||
### Install Dash3D Requirements ### | ||
RUN npm install -g [email protected] | ||
COPY package.json package-lock.json ./ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters