GithubHelp home page GithubHelp logo

Comments (2)

samcmill avatar samcmill commented on July 18, 2024

Unfortunately I haven't found an elegant solution to this.

Here's the best I've come up with:

  1. Ignore the return status of yum-config-manager --add-repo. This would involve adding a (non-default?) option to the yum building block that would use (yum-config-manager --add-repo https://developer.download.nvidia.com/devtools/repos/rhel7/x86_64 || true) instead of yum-config-manager --add-repo https://developer.download.nvidia.com/devtools/repos/rhel7/x86_64.
  2. Remove the repo file at the end of the building block. This would involve adding a (non-default?) option to the yum building block that would run rm -f /etc/yum.repos.d/developer.download.nvidia.com_devtools_repos_rhel7_x86_64.repo after installing the packages.
  3. Combine the nsight_systems and nsight_compute building blocks into a single nsight building block. The repo would only need to be added once, with options to individually enable / disable installing Nsight System and Nsight Compute. However, this would break existing recipes.

Thoughts?

from hpc-container-maker.

cliffburdick avatar cliffburdick commented on July 18, 2024

@samcmill same. I was hoping there would be an option to ignore a repo if it exists on yum-config-manager, but unfortunately, there's not. 3 sounds like the best option if it didn't break existing recipes, so it's probably a non-starter. There may also be another tool down the line that uses the same repo, and it would break again. I like the first option as a quick hack since that command shouldn't fail anyways.

from hpc-container-maker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.