Skip to content
Snippets Groups Projects
Select Git revision
  • ubuntu22.04 default protected
  • ubuntu20.04 protected
  • DOCS protected
  • centos8 protected
  • centos7 protected
  • ubuntu18.04 protected
  • ubuntu16.04 protected
7 results

opengl

  • Clone with SSH
  • Clone with HTTPS
  • Srivatsan Sampathkumar's avatar
    Srivatsan Sampathkumar authored
    Create Ubuntu 22 opengl containers
    
    See merge request cuda-installer/opengl!6
    7b006ed7
    History

    Ubuntu 22.04

    HOW TO BUILD CUSTOM IMAGES USING THE DOCKER SCRIPTS

    Procedure is similar to the CUDA Container Images.

    Run this script from the cloned opengl repo parent path (making changes where necessary):

    #/bin/bash
    
    export IMAGE_NAME="my/nvidia/opengl"
    export LIBGLVND_VERSION="1.2"
    
    export FROM="${OS}:${OS_VERSION}"
    export OS="ubuntu"
    export OS_VERSION="22.04"
    
    # Example for building unsupported debian images:
    # export FROM="debian:10"
    # export OS="debian"
    # export OS_VERSION="10"
    
    cp NGC-DL-CONTAINER-LICENSE base/
    
    echo -e ">>> Building BASE Image\n"
    
    docker build -t "${IMAGE_NAME}:base-${OS}${OS_VERSION}" --build-arg "from=${FROM}" "base/"
    
    echo -e "\n>>> Building RUNTIME Image\n"
    
    docker build -t "${IMAGE_NAME}:${LIBGLVND_VERSION}-runtime-${OS}${OS_VERSION}" \
                 --build-arg "from=${IMAGE_NAME}:base-${OS}${OS_VERSION}" \
                 --build-arg "LIBGLVND_VERSION=${LIBGLVND_VERSION}" \
                 "glvnd/runtime"
    
    echo -e "\n>>> Building DEVEL Image\n"
    
    docker build -t "${IMAGE_NAME}:${LIBGLVND_VERSION}-devel-${OS}${OS_VERSION}" \
                 --build-arg "from=${IMAGE_NAME}:${LIBGLVND_VERSION}-runtime-${OS}${OS_VERSION}" \
                 "glvnd/devel"