Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Build AMI
id: build
run: |
# pipefail is required so a packer failure isn't masked by the
# exit status of the `tee` at the end of the pipeline below.
set -eo pipefail
cd packer
BUILD_JOB_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
COMMIT_HASH="${{ github.sha }}"
Expand Down
10 changes: 6 additions & 4 deletions packer/scripts/install-nvidia-drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ uname -r
# Check for NVIDIA GPU (may not work in all environments)
lspci | grep -i nvidia || echo "Note: NVIDIA GPU check may not work in build environment"

# Verify gcc is installed
gcc --version

# Update package lists
sudo apt-get update

# Install required packages for CUDA installation
# Install required packages for CUDA installation. build-essential provides
# gcc, which is needed to build the NVIDIA kernel modules, so it must be
# installed before the gcc verification below.
sudo apt-get install -y linux-headers-$(uname -r) build-essential

# Verify gcc is installed
gcc --version

# Force Ubuntu 24.04 repository (we must use Ubuntu 24.04)
echo "Detecting Ubuntu version..."
UBUNTU_VERSION=$(lsb_release -rs)
Expand Down
Loading