Skip to content

Commit bbf85f8

Browse files
committed
[doc] INSTALL.md: Update documentation for the build of Docker images
1 parent 43c7d96 commit bbf85f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

INSTALL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,33 +384,33 @@ Check the sample in [samples](src/samples/aliceVisionAs3rdParty) for an example
384384

385385
### Docker image
386386

387-
A docker image can be built using the CentOS or Ubuntu Dockerfiles.
387+
A docker image can be built using the Ubuntu or Rocky Linux Dockerfiles.
388388
The Dockerfiles are based on `nvidia/cuda` images (https://hub.docker.com/r/nvidia/cuda/)
389389

390390
To generate the docker image, just run:
391391
```
392-
./docker/build-centos.sh
392+
./docker/build-rocky.sh
393393
```
394394

395-
To do it manually, parameters `OS_TAG` and `CUDA_TAG` should be passed to choose the OS and CUDA version.
396-
For example, the first line of below's commands shows the example to create docker for a CentOS 7 with Cuda 11.3.1 and second line for Ubuntu 16.04 with Cuda 11.0:
395+
To do it manually, parameters `ROCKY_VERSION`/`UBUNTU_VERSION` and `CUDA_TAG` should be passed to choose the OS and CUDA versions.
396+
For example, the first line of the commands below shows the example to create docker for a Rocky 9 with Cuda 12.1.0 and the second line for Ubuntu 16.04 with Cuda 11.0:
397397

398398
```
399-
docker build --build-arg OS_TAG=7 --build-arg CUDA_TAG=11.3.1 --tag alicevision:centos7-cuda11.3.1 .
400-
docker build --build-arg OS_TAG=16.04 --build-arg CUDA_TAG=11.0 --build-arg NPROC=8 --tag alicevision:ubuntu16.04-cuda11.0 -f Dockerfile_ubuntu .
399+
docker build --build-arg ROCKY_VERSION=9 --build-arg CUDA_TAG=12.1.0 --tag alicevision:rocky9-cuda12.1.0 -f Dockerfile_rocky .
400+
docker build --build-arg UBUNTU_VERSION=22.04 --build-arg CUDA_TAG=12.1.0 --build-arg NPROC=8 --tag alicevision:ubuntu22.04-cuda12.1.0 -f Dockerfile_ubuntu .
401401
```
402402

403403
In order to run the image [nvidia docker](https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0)) is needed.
404404

405405
```
406-
docker run -it --runtime=nvidia alicevision:centos7-cuda9.2
406+
docker run -it --runtime=nvidia alicevision:rocky9-cuda12.1.0
407407
```
408408

409409
To retrieve the generated files:
410410

411411
```
412412
# Create an instance of the image, copy the files and remove the temporary docker instance.
413-
CID=$(docker create alicevision:centos7-cuda11.3.1) && docker cp ${CID}:/opt/AliceVision_install . && docker cp ${CID}:/opt/AliceVision_bundle . && docker rm ${CID}
413+
CID=$(docker create alicevision:rocky9-cuda12.1.0) && docker cp ${CID}:/opt/AliceVision_install . && docker cp ${CID}:/opt/AliceVision_bundle . && docker rm ${CID}
414414
```
415415

416416
Environment variable

0 commit comments

Comments
 (0)