Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2494

Cache the node packages in the cache.tar.gz

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • System
    • None
    • 13
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 3scale 2019-05-06, 3scale 2019-09-09, 3scale 2019-09-30

      Current state

      System productized build is caching npm binaries.
      Right now the node_modules of system is saved in the cache.tar.gz.

      Issues

      • If the base image updates the version of a library, then the compiled node modules might eventually break, referencing an outdated version of this library
      • CVE rebuild might fail on compiling assets
      • This is critical for productization and CVEs, etc.

      How to fix it

      Cache the node packages in the cache.tar.gz like we do for ruby gems.

      We need to make sure that node_modules is containing the sources.
      Then what we can do is remove the binaries from the cache and cache node_modules directory.

              Unassigned Unassigned
              cbartlet Catherine Bartlett
              Yorgos Saslis Yorgos Saslis (Inactive)
              Filip Čáp Filip Čáp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: