Forum Discussion

Nikolay_Matveev's avatar
Nikolay_Matveev
Icon for Nimbostratus rankNimbostratus
Jun 21, 2016

iRules LX - offline installation of NPM packages

Is there a method to install NPM packages on a BigIP system without Internet connection? I know that there are some ways of doing this in the "outer world" like the ones described here (specifically those described in the Bundling section) but I'm also very interested to know F5's view on this (as BigIP is not just a regular Linux box, you know :)).

 

Is there a supported or recommended method? Or at least a method that somebody tried and it worked fine?

 

3 Replies

  • Unfortunately this guide is too brief. Here is everything its author had to say about the NPM packages:

     

    ==========================================================

     

    Third-party packages and libraries extend the functionality of Node.js. The node package manager (npm)site lists thousands of packages that you can install and use in Node.js extensions. Common packages thatyou may want to use in iRules®include parsers for JSON and XML, libraries to consume other servicesand databases, and distributed memory object caching systems like memcached. In addition to frameworksdesigned to simplify Node.js application development, packages are available for, among others:

     

    • JSON parsers
    • XML parsers
    • Memcached
    • Redis
    • MongoDB
    • MySQL

    ==========================================================

     

    This is quite scarce for something that is meant to be a technical guide. Don't you think so?

     

    "Getting Started with iRules LX" article series by Eric Flores is much more useful than this guide but unfortunately he did not even touch the topic of offline installation of packages (like if all BigIP enterprise systems had direct Internet access!). By a reason Eric ignored my question posted as a comment to one of his articles and also he ignored a message I sent to him directly.

     

    That was really disappointing so I'm now trying to seek help from the DevCentral Community.

     

  • Can you use a proxy? I could use npm to connect via an proxy service.

     

    npm config set proxy http://proxy:3128

     

    npm config set https-proxy http://proxy:3128