Closed
Bug 688073
Opened 15 years ago
Closed 14 years ago
Add UglifyJS/CleanCSS to addons-dev
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gkoberger, Assigned: oremj)
References
Details
We need to add UglifyJS to https://addons-dev.allizom.org/
1) Install uglify (something like "npm install uglify-js")
2) Add this to settings_local.py: UGLIFY_BIN = 'uglifyjs'
3) You can test to make sure things worked by running "manage.py compress_assets". If there's no errors, we should be good to go.
Note that the npm package is called "uglify-js", however the command itself is "uglifyjs".
This is for addons-dev only; not prod. Let me know if there's any other info you need. Thanks!
More about UglifyJS: https://github.com/mishoo/UglifyJS
Updated•15 years ago
|
Assignee: server-ops → cshields
Comment 1•15 years ago
|
||
If you install the packages on prod now, we don't need another bug and we can adjust the settings_local when we do a push. If you want to install packages on prod during a push, let me know and I'll add it to the push notes.
| Reporter | ||
Comment 2•15 years ago
|
||
I was going to create another bug, but I figure it'd be easier for IT if I just put this here. If not, I can split them up.
We also need "clean-css", which can be installed the same way as above on addons-dev (and prod, if you'd prefer to do that now).
https://github.com/GoalSmashers/clean-css
COMPLETE RECAP:
1) Install UglifyJS addons-dev (and prod?):
npm install uglify-js
2) Install Clean-CSS on addons-dev (and prod?):
npm install clean-css
3) Update settings_local.py on addons-dev (not prod):
UGLIFY_BIN = 'uglifyjs'
CLEANCSS_BIN = 'cleancss'
Summary: Add UglifyJS to addons-dev → Add UglifyJS/CleanCSS to addons-dev
| Assignee | ||
Updated•14 years ago
|
Assignee: cshields → jeremy.orem+bugs
| Assignee | ||
Comment 3•14 years ago
|
||
As we install more node packages it is becoming difficult to maintain RPMs for all of them.
In this case we are asked to install two node packages: uglifyjs and cleancss, but cleancss has a dependency, "optimist" and "optimist" has the dependency "wordwrap". I haven't checked if wordwrap has any dependencies.
We need to figure out a better way of installing these. NPM is fine with me, but security will need to sign off on its use first, so assigning this bug to security to look at NPM.
Assignee: jeremy.orem+bugs → server-ops
Component: Server Operations: Web Operations → Server Operations: Security
QA Contact: mrz → mcoates
Updated•14 years ago
|
Assignee: server-ops → nmiller
Comment 4•14 years ago
|
||
Any updates?
Comment 5•14 years ago
|
||
(In reply to Wil Clouser [:clouserw] from comment #4)
> Any updates?
will try to raise more infrasec eyes..
Updated•14 years ago
|
Assignee: nmiller → jstevensen
Comment 6•14 years ago
|
||
Talked about this in IRC with petef. To reiterate:
You would like to create custom RPMs for a given application and that RPM will install the necessary NPM's (node.js packages) and it's dependencies. The RPMs will be deployed via puppet. In the event that a NPM needs to be updated (bugfix or security fix), the RPM will be updated and a new version deployed via puppet.
We're ok with this approach. We don't see any additional risk in doing this. However we would like to see documentation on custom RPMs. We want to make sure we are able to keep track of the versions of software used in these RPMs and that these RPMs are maintained.
Comment 7•14 years ago
|
||
Joe,
NPM is the Node Package Manager (http://npmjs.org/), and not a custom packaging solution. We're looking for infrasec input into whether you would feel comfortable with using said manager to install these packages into our server environment instead of trying to juggle RPMs.
| Assignee | ||
Comment 8•14 years ago
|
||
I think we've decided to make rpms for each node package (https://github.com/oremj/npm2rpm/) and then deploy those rpms via puppet.
Assignee: jstevensen → oremj
| Assignee | ||
Comment 9•14 years ago
|
||
As far as keeping a list, you can assume that all packages of the form nodejs-<name>*rpm in the mozilla rpm repository are custom RPMs built by npm2rpm.
| Assignee | ||
Updated•14 years ago
|
Component: Server Operations: Security → Server Operations: Web Operations
QA Contact: mcoates → cshields
| Assignee | ||
Comment 10•14 years ago
|
||
cleancss and uglifyjs have been installed on the addons admin server.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•7 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•