Giter Site home page Giter Site logo

Comments (5)

rarkins avatar rarkins commented on August 21, 2024

If you mount /home/ubuntu/.npmrc within the Pro's "server" container then it should work, assuming you didn't override the container's user (which you shouldn't do).

Alternative, define npmrc as a field within your config.js, like:

module.exports = {
  npmrc: '.........'
};

Any .npmrc found within a repository's file system will also be read, however it is implicitly ignored if Renovate has found an .npmrc config before that.

from renovate-ce-ee.

patrickmarabeas avatar patrickmarabeas commented on August 21, 2024

.npmrc in home dir is now working. Must have been a permission issue as the container user was being temporarily switched to root to install certs.

How dependant is Renovate Pro on the container being run as ubuntu?

from renovate-ce-ee.

rarkins avatar rarkins commented on August 21, 2024

Renovate Pro is built on Ubuntu 18.04. Apart from .npmrc - which is your choice whether to add or not, because there are alternatives - the only other package manager that so far depends on /home/ubuntu existing is Gradle.

However later this year I intend to have Pro support individual manager containers like renovate/gradle and renovate/npm so that it can switch which version of each to use at runtime. i.e. detect the best version of each binary to use via either the repository or config, and then run that exact version, such as renovate/npm:6.9.0. In such case it will be a required step that a common uid/guid is used between the containers.

Are you wanting to run it as root, or something else?

from renovate-ce-ee.

patrickmarabeas avatar patrickmarabeas commented on August 21, 2024

Successfully running it as a user within a range that OpenShift provides the project.

from renovate-ce-ee.

rarkins avatar rarkins commented on August 21, 2024

I'm going to close this issue because the original topic was resolved. If you have a feature request regarding customisable user ID in the Docker container, please provide details in a new issue so we can discuss there. Pro's current setup is pretty simple - it is based on ubuntu and does have some files it owns in /home/ubuntu. Additionally, in future, for file permissions reasons it will be necessary that the same uid/guid is shared between multiple containers that you won't have control over.

from renovate-ce-ee.

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.