mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 09:47:20 +02:00
21 lines
751 B
Bash
Executable file
21 lines
751 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
test -z "$MESHROOM_VERSION" && MESHROOM_VERSION="$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short HEAD)"
|
|
test -z "$AV_VERSION" && echo "AliceVision version not specified, set AV_VERSION in the environment" && exit 1
|
|
test -z "$CUDA_VERSION" && CUDA_VERSION="11.3.1"
|
|
test -z "$CENTOS_VERSION" && CENTOS_VERSION="7"
|
|
|
|
test -d docker || (
|
|
echo This script must be run from the top level Meshroom directory
|
|
exit 1
|
|
)
|
|
|
|
VERSION_NAME=${MESHROOM_VERSION}-av${AV_VERSION}-centos${CENTOS_VERSION}-cuda${CUDA_VERSION}
|
|
|
|
# Retrieve the Meshroom bundle folder
|
|
rm -rf ./Meshroom-${VERSION_NAME}
|
|
CID=$(docker create alicevision/meshroom:${VERSION_NAME})
|
|
docker cp ${CID}:/opt/Meshroom_bundle ./Meshroom-${VERSION_NAME}
|
|
docker rm ${CID}
|
|
|