← Back to team overview

openstack team mailing list archive

Re: Packaging Horizon

 

Adam beat me to the punch. What he suggested is the least invasive solution (doesn't require changing any template files).

The secondary solution which is simpler but less elegant is a simple patch to the stylesheet template file to point to a static pre-compiled copy of the CSS, and then removing/overriding the COMPRESS_PRECOMPILERS setting (making it an empty tuple) .

Either way works, you just have to compile the file once and ship it in the distro package.

If you can't compile it yourself then you could perhaps use the one from Adam/Ubuntu, or I can do it and send you the final output file.

    - Gabriel

> -----Original Message-----
> From: openstack-bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx
> [mailto:openstack-
> bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Adam Gandelman
> Sent: Friday, September 14, 2012 11:19 AM
> To: openstack@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Openstack] Packaging Horizon
> 
> On 09/14/2012 05:06 AM, Matthias Runge wrote:
> > Hi,
> >
> > currently, I'm trying to package horizon RC1 for Fedora.
> >
> > Since, Fedora does not have node.js included, and also doesn't have
> > LESS included, it won't work per default.
> >
> > Do you have suggestions for me?
> > Thanks
> 
> We faced the same issue in Ubuntu [1].  Ended up compiling and
> compressing the CSS and JS at packaging time, shipping those + the
> manifest.json with the package and enabling COMPRESS_OFFLINE=True by
> default.  Users who might want to make use of lessc and node later can just
> install node-less and set COMPRESS_OFFLINE=False.
> 
> Adam
> 
> [1] https://bugs.launchpad.net/horizon/+bug/1024326
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp




Follow ups

References