Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condor-sam-container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Surrey Shared Containers
condor-sam-container
Commits
878bcaf5
Commit
878bcaf5
authored
1 year ago
by
Thirgood, Christopher T (PG/R - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
nvida driver specific now
parent
583b0df0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#59675
passed
1 year ago
Stage: build
Stage: push
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+17
-14
17 additions, 14 deletions
Dockerfile
with
17 additions
and
14 deletions
Dockerfile
+
17
−
14
View file @
878bcaf5
# FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
FROM
nvidia/driver:460.3
2
.0
3
-ubuntu20.04
FROM
nvidia/driver:460.
7
3.0
1
-ubuntu20.04
ARG
DEBIAN_FRONTEND=noninteractive
# Add NVIDIA GPG key to prevent GPG error
# RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
# RUN apt-key del 7fa2af80
# RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb && \
# dpkg -i cuda-keyring_1.0-1_all.deb
RUN
apt-key del 7fa2af80
RUN
apt-key adv
--fetch-keys
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
RUN
apt-key adv
--fetch-keys
https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub
# RUN rm /etc/apt/sources.list.d/cuda.list
# RUN rm /etc/apt/sources.list.d/nvidia-ml.list
RUN
apt-get
-y
update
&&
apt-get
install
-y
\
build-essential
\
cmake
\
...
...
@@ -53,20 +68,8 @@ RUN pip install setuptools==60.9.3 && \
git clone https://github.com/facebookresearch/segment-anything.git
&&
\
cd
segment-anything
&&
pip
install
-e
.
&&
\
pip
install
opencv-python pycocotools matplotlib onnxruntime onnx
&&
\
# conda install pytorch torchvision torchaudio cudatoolkit=11.2 -c pytorch -c nvidia
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
# Uncomment the following line if you want to install PyTorch and related packages within the Conda environment
# RUN conda install pytorch torchvision torchaudio cudatoolkit=11.2 -c pytorch -c nvidia
conda
install
pytorch torchvision torchaudio
cudatoolkit
=
11.2
-c
pytorch
-c
nvidia
# Set the default command to bash to activate conda environment on run
CMD
["/bin/bash"]
# RUN conda install pytorch torchvision torchaudio cudatoolkit=11.2 -c pytorch -c nvidia
# RUN conda activate segment_anything_env
# RUN conda install pytorch>=1.7 torchvision>=0.8 torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
#RUN pip3 install ffmpeg gnutls
#RUN pip3 install opencv-python pycocotools matplotlib onnxruntime onnx
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment