How to I make npm available to a build nodes?

asked 2018-10-04 05:30:58 -0600

ssbarnea gravatar image

If a new project needs a tool that is not installed by default on the build nodes, how do I assure that his tool is installed?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-10-04 05:34:52 -0600

ssbarnea gravatar image

By default zuul is looking for a fine named (bindep.txt) in your repository for installing binaries that are needed by the project.

Here is one such example of file that assures that needed tools are installed. Please remark the use of test tag which mentions that these are needed only for testing and not for the runtime of the package.

# This is a cross-platform list tracking distribution packages needed by tests;
# see for additional information.

nodejs [test]
nodejs-legacy [platform:ubuntu-xenial test]
npm [test]

Read the bindep.txt documentation for more information about how to specify platform specific dependencies as it supports most platforms.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-10-04 05:30:58 -0600

Seen: 85 times

Last updated: Oct 04 '18