Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
75 additions
and
12 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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Bootstrap: docker | ||
From: nvidia/cuda:11.1.1-cudnn8-devel-ubuntu20.04 | ||
Stage: spython-base | ||
|
||
%files | ||
./requirements.txt /workspace | ||
%labels | ||
maintainer="Dong Wang" | ||
%post | ||
CUDA_VERSION=11.1.1 | ||
OS_VERSION=20.04 | ||
|
||
|
||
|
||
|
||
PATH="/root/miniconda3/bin:${PATH}" | ||
PATH="/root/miniconda3/bin:${PATH}" | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
apt-get update && apt-get upgrade -y &&\ | ||
apt-get install -y wget python3-pip | ||
|
||
python3 -m pip install --upgrade pip | ||
|
||
cd /workspace | ||
python3 -m pip install -r /workspace/requirements.txt and &&\ | ||
rm /workspace/requirements.txt | ||
|
||
%environment | ||
export PATH="/root/miniconda3/bin:${PATH}" | ||
%runscript | ||
cd /workspace | ||
exec /bin/bash /bin/bash "$@" | ||
%startscript | ||
cd /workspace | ||
exec /bin/bash /bin/bash "$@" |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG CUDA_VERSION=11.1.1 | ||
ARG OS_VERSION=20.04 | ||
|
||
FROM nvidia/cuda:${CUDA_VERSION}-cudnn8-devel-ubuntu${OS_VERSION} | ||
|
||
LABEL maintainer="Dong Wang" | ||
|
||
|
||
ENV PATH="/root/miniconda3/bin:${PATH}" | ||
ARG PATH="/root/miniconda3/bin:${PATH}" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update && apt-get upgrade -y &&\ | ||
apt-get install -y wget python3-pip | ||
|
||
RUN python3 -m pip install --upgrade pip | ||
|
||
WORKDIR /workspace | ||
ADD ./requirements.txt /workspace | ||
RUN python3 -m pip install -r /workspace/requirements.txt and &&\ | ||
rm /workspace/requirements.txt | ||
|
||
CMD ["/bin/bash"] |
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