Skip to content

Commit

Permalink
[docker] add dockerfile (#31)
Browse files Browse the repository at this point in the history
* add dockerfile

* update readme
  • Loading branch information
ver217 authored Jul 21, 2022
1 parent 63f7df3 commit 446385c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ pip install tensornvme
```
All acceptable environment variables are the same as those when installing from source.

## Use docker

```shell
git clone https://github.com/hpcaitech/TensorNVMe.git && cd TensorNVMe/docker && docker build -t tensornvme .
```

## CLI

We provide a CLI to test whether backends work well.
Expand Down
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM hpcaitech/pytorch-cuda:1.11.0-11.3.0

# install dependencies
RUN conda install -y cmake

# install tensornvme
RUN git clone https://github.com/hpcaitech/TensorNVMe.git && \
cd TensorNVMe && \
pip install -r requirements.txt && \
pip install -v --no-cache-dir .

0 comments on commit 446385c

Please sign in to comment.