Skip to content

Commit ab0a71d

Browse files
committed
README + GPU build script changes for dry-run feature
1 parent 9612973 commit ab0a71d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ In the age of OTT platforms, there are still some who prefer to download movies/
7777
* For a GPU build that is reusable (saving time on instantiating the program):
7878
```bash
7979
$ docker build --build-arg BASEIMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04 --build-arg DEPSLIST=requirements-gpu.txt -t autosub-base . && \
80-
docker run --gpus all --name autosub-base autosub-base || \
81-
docker commit autosub-base autosub-instance
80+
docker run --gpus all --name autosub-base autosub-base --dry-run || \
81+
docker commit --change 'CMD []' autosub-base autosub-instance
8282
```
8383
* Then
8484
```bash

scripts/gpu-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
cd "$(dirname "$(readlink -f "$0")")"
33
cd ..
4-
docker build --build-arg BASEIMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04 --build-arg DEPSLIST=requirements-gpu.txt -t autosub-base . && docker run --gpus all --name autosub-base autosub-base || docker commit autosub-base autosub-instance && docker container rm autosub-base
4+
docker build --build-arg BASEIMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04 --build-arg DEPSLIST=requirements-gpu.txt -t autosub-base . && docker run --gpus all --name autosub-base autosub-base --dry-run && docker commit --change 'CMD []' autosub-base autosub-instance && docker container rm autosub-base
55

0 commit comments

Comments
 (0)