| Summary: | Provide node.js stack for RAP HIPP instance | ||
|---|---|---|---|
| Product: | Community | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | CI-Jenkins | Assignee: | CI Admin Inbox <ci.admin-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | denis.roy, mknauer, tbuschto, webmaster |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows NT | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
I would suggest you install them on build.eclipse.org:/shared/common(which is shared with the HIPP servers as /opt/public/common) . -M. If someone on your project has shell access to build.eclipse.org, you can install these in /shared/common for everyone to use. This location is accessible from all the Hudson and HIPP servers. I already see these directories under /shared/common: node-v0.10.18 node-v0.10.26 node-latest -> node-v0.10.26 So node-latest seems to be your best bet. Yes, maybe this is a path forward... I tried a cd /shared/common/node-latest/bin export PATH=$PATH:$PWD npm install -g grunt-cli and now there's the grunt executable in shared/common/node-latest/bin/grunt Is this working for us, Tim? > cd /shared/common/node-latest/bin
> export PATH=$PATH:$PWD
> npm install -g grunt-cli
If, for some reason your cd fails, you'll be adding $PWD to the $PATH (whatever $PWD may be at that time) and executing a potentially unknown "npm" executable.
May I suggest:
export PATH=$PATH:/shared/common/node-latest/bin
or
cd /shared/common/node-latest/bin && export PATH=$PATH:$PWD
(In reply to Denis Roy from comment #4) > May I suggest: > export PATH=$PATH:/shared/common/node-latest/bin Sure... my own "snippet" was for myself documenting what I did (interactively). It wasn't meant for production or for use on the HIPP instance. :) (In reply to Markus Knauer from comment #3) > Is this working for us, Tim? It should. I have submitted a Gruntfile to the rap repository root that checks our JS files with jshint. We can try with that. I guess the modules have to be installed before each build, i.e. npm install grunt We've been testing this approach in our RAP build and it seems to work pretty well. Thanks! Closing as fixed. Thanks for closing the loop. |