Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

feat: only download nvidia drivers if needed #4797

Merged
merged 5 commits into from
Jan 7, 2022

Conversation

jackfrancis
Copy link
Member

Reason for Change:

This PR updates the nvidia pre-download implementation to copy downloaded .deb files to a directory outside of the apt cache repo directory, to prevent apt from deleting it over time as it maintains the data cache.

This will solve the "airgap" GPU solution, and will also protect against any unexpected environmental changes (e.g., if the pre-downloaded files do disappear we will re-download the files at runtime).

Issue Fixed:

Credit Where Due:

Does this change contain code from or inspired by another project?

  • No
  • Yes

If "Yes," did you notify that project's maintainers and provide attribution?

  • No
  • Yes

Requirements:

Notes:

@jackfrancis
Copy link
Member Author

cc @Michael-Sinz

Copy link
Collaborator

@Michael-Sinz Michael-Sinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly some questions and comments about the implementation.

We can save some disk space and complexity in the setup.

parts/k8s/cloud-init/artifacts/cse_config.sh Outdated Show resolved Hide resolved
parts/k8s/cloud-init/artifacts/cse_config.sh Outdated Show resolved Hide resolved
parts/k8s/cloud-init/artifacts/cse_main.sh Show resolved Hide resolved
parts/k8s/cloud-init/artifacts/cse_install.sh Outdated Show resolved Hide resolved
parts/k8s/cloud-init/artifacts/cse_install.sh Outdated Show resolved Hide resolved
parts/k8s/cloud-init/artifacts/cse_helpers.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@Michael-Sinz Michael-Sinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jackfrancis jackfrancis merged commit 76afba1 into Azure:master Jan 7, 2022
@jackfrancis jackfrancis deleted the nvidia-cache-outside-apt-dir branch January 7, 2022 00:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants