-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1793 from alicevision/build/rockyDocker
[docker] Add Dockerfiles for Rocky 9
- Loading branch information
Showing
11 changed files
with
259 additions
and
284 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,71 @@ | ||
ARG AV_DEPS_VERSION | ||
ARG AV_VERSION | ||
ARG CUDA_VERSION | ||
ARG ROCKY_VERSION | ||
FROM alicevision/alicevision-deps:${AV_DEPS_VERSION}-rocky${ROCKY_VERSION}-cuda${CUDA_VERSION} | ||
LABEL maintainer="AliceVision Team alicevision-team@googlegroups.com" | ||
ARG TARGET_ARCHITECTURE=core | ||
|
||
# use CUDA_VERSION to select the image version to use | ||
# see https://hub.docker.com/r/nvidia/cuda/ | ||
# | ||
# AV_VERSION=2.2.8 | ||
# CUDA_VERSION=11.0 | ||
# ROCKY_VERSION=9 | ||
# docker build \ | ||
# --build-arg CUDA_VERSION=${CUDA_VERSION} \ | ||
# --build-arg ROCKY_VERSION${ROCKY_VERSION} \ | ||
# --build-arg AV_VERSION=2.2.8.develop \ | ||
# --tag alicevision/alicevision:${AV_VERSION}-rocky${ROCKY_VERSION}-cuda${CUDA_VERSION} \ | ||
# -f Dockerfile_rocky . | ||
# | ||
# then execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0)) | ||
# docker run -it --runtime=nvidia alicevision/alicevision:{AV_VERSION}-rocky${ROCKY_VERSION}-cuda${CUDA_VERSION} | ||
|
||
|
||
# OS/Version (FILE): cat /etc/issue.net | ||
# Cuda version (ENV): $CUDA_VERSION | ||
|
||
ENV AV_DEV=/opt/AliceVision_git \ | ||
AV_BUILD=/tmp/AliceVision_build \ | ||
AV_INSTALL=/opt/AliceVision_install \ | ||
AV_BUNDLE=/opt/AliceVision_bundle \ | ||
PATH="${PATH}:${AV_BUNDLE}" \ | ||
VERBOSE=1 | ||
|
||
COPY CMakeLists.txt *.md ${AV_DEV}/ | ||
COPY src ${AV_DEV}/src | ||
|
||
WORKDIR "${AV_BUILD}" | ||
|
||
COPY docker ${AV_DEV}/docker | ||
|
||
RUN export CPU_CORES=`${AV_DEV}/docker/check-cpu.sh` | ||
|
||
RUN cmake -DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS:BOOL=ON \ | ||
-DTARGET_ARCHITECTURE=${TARGET_ARCHITECTURE} \ | ||
-DALICEVISION_BUILD_DEPENDENCIES:BOOL=OFF \ | ||
-DCMAKE_PREFIX_PATH:PATH="${AV_INSTALL}" \ | ||
-DCMAKE_INSTALL_PREFIX:PATH="${AV_INSTALL}" \ | ||
-DALICEVISION_BUNDLE_PREFIX="${AV_BUNDLE}" \ | ||
-DALICEVISION_USE_ALEMBIC:BOOL=ON \ | ||
-DMINIGLOG:BOOL=ON \ | ||
-DALICEVISION_USE_CCTAG:BOOL=OFF \ | ||
-DALICEVISION_USE_OPENCV:BOOL=ON \ | ||
-DALICEVISION_USE_OPENGV:BOOL=ON \ | ||
-DALICEVISION_USE_POPSIFT:BOOL=ON \ | ||
-DALICEVISION_USE_CUDA:BOOL=ON \ | ||
-DALICEVISION_USE_ONNX_GPU:BOOL=OFF \ | ||
-DALICEVISION_BUILD_DOC:BOOL=OFF \ | ||
-DALICEVISION_BUILD_SWIG_BINDING:BOOL=ON \ | ||
-DSWIG_DIR:PATH="${AV_INSTALL}/share/swig/4.3.0" -DSWIG_EXECUTABLE:PATH="${AV_INSTALL}/bin-deps/swig" \ | ||
"${AV_DEV}" | ||
|
||
RUN make install -j${CPU_CORES} | ||
|
||
RUN make bundle | ||
|
||
RUN rm -rf "${AV_BUILD}" "${AV_DEV}" && \ | ||
echo "export ALICEVISION_SENSOR_DB=${AV_BUNDLE}/share/aliceVision/cameraSensors.db" >> /etc/profile.d/alicevision.sh && \ | ||
echo "export ALICEVISION_ROOT=${AV_BUNDLE}" >> /etc/profile.d/alicevision.sh |
Oops, something went wrong.