Skip to content

Commit

Permalink
Fix setup script for runtime container (#524)
Browse files Browse the repository at this point in the history
* Added packages needed when running Holohub from fresh Ubuntu
---------

Signed-off-by: Julien Jomier <[email protected]>
  • Loading branch information
jjomier authored Oct 3, 2024
1 parent f2042bf commit c8c1bc0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ RUN apt update \
gobject-introspection \
libgtk-3-dev \
libcanberra-gtk-module \
graphviz
graphviz\
ninja-build

RUN pip install meson

RUN if ! grep -q "VERSION_ID=\"22.04\"" /etc/os-release; then \
pip install setuptools; \
fi
Expand Down
17 changes: 13 additions & 4 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ setup() {
apt-get install --no-install-recommends -y libv4l-dev
fi

# git
git_path=$(which git)
if [[ $git_path == "" ]]; then
echo "Installing git"
apt-get install --no-install-recommends -y git
fi

# Install ngc-cli
ngc_version=$(ngc --version 2>/dev/null | grep -Po '^NGC CLI \K[^-]*')
Expand Down Expand Up @@ -373,10 +379,13 @@ setup() {
install_cuda_dependencies_package libcudnn8-dev cuda$short_cuda_version
fi

# Make sure we do not install any cuda12 packages
install_cuda_dependencies_package libnvinfer-dev cuda$short_cuda_version
install_cuda_dependencies_package libnvinfer-plugin-dev cuda$short_cuda_version
install_cuda_dependencies_package libnvonnxparsers-dev cuda$short_cuda_version
# Check the current version of libnvinfer-bin
installed_libnvinferbin=$(dpkg --status libnvinfer-bin 2>/dev/null | grep -Po '^Version: \K[^-]*')
installed_libnvinferbin_version=${installed_libnvinferbin%.*}
install_cuda_dependencies_package libnvinfer-headers-dev $installed_libnvinferbin_version
install_cuda_dependencies_package libnvinfer-dev $installed_libnvinferbin_version
install_cuda_dependencies_package libnvinfer-plugin-dev $installed_libnvinferbin_version
install_cuda_dependencies_package libnvonnxparsers-dev $installed_libnvinferbin_version

# Install the autocomplete
echo "Installing autocomplete"
Expand Down

0 comments on commit c8c1bc0

Please sign in to comment.