Giter Club home page Giter Club logo

Comments (3)

Madeeks avatar Madeeks commented on August 23, 2024 1

After a more focused analysis, I realized that leveraging env vars like ${HOME} or ${USER} is not a viable solution: the configure installation script needs to be executed with superuser privileges, which means its home directory is usually set to /root, having no relationship with the location of home directories for regular users.

That said, I still think that the ability to guide in some measure the configuration created by the script would be a nice thing to have. For example, it could save time when very few modifications are needed from the base config.
I'm considering the possibility to support arguments in the configuration script. If there is agreement with the rest of the dev team, this could be available in a future patch release.

from sarus.

Madeeks avatar Madeeks commented on August 23, 2024

Hi Marco,
the location of the local image repositories can be configured through the localRepositoryBaseDir parameter in sarus.json.
Sarus will attempt to create repository in <localRepositoryBaseDir>/<user name>/.sarus.

The initial value for localRepositoryBaseDir is set to /home by the configure_installation.sh script, but following your feedback I think it would be a better option to use ${HOME} in the configuration script in the future.

from sarus.

mvhulten avatar mvhulten commented on August 23, 2024

I see that /home is hardcoded in three lines in configure_installation.sh. I don't know if or where /${USER} is added at some point, so it looks like it is not completely trivial to "fix" this.

This is not an urgent issue as it is quite easy to resolve. In my opinion it would, in retrospect, also be okay to not fix it and close this issue.

from sarus.

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.