Search code examples
node.jsopenshiftweb-deploymentopenshift-3

Openshift fails and stops building node js application, when trying to deploy


I'm trying to deploy a nodejs application on openshift but it fails after about a minute and when I check the log it stops at the line:

---> Building your Node application from source

without logging any error.enter image description here


Solution

  • Your build is requiring more memory than is allocated by default. You need to increase the amount of memory for the build. This issue, how to confirm that this is the issue, and how to increase the memory allocated are given in the blog post:

    In short, try running:

    oc patch bc/shareit -p '{"spec":{"resources":{"limits":{"memory":"1Gi"}}}}'