Skip to content

Instantly share code, notes, and snippets.

@honza
Last active September 11, 2018 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save honza/5e62c893d576c8f64d310c8bf8c637b1 to your computer and use it in GitHub Desktop.
Save honza/5e62c893d576c8f64d310c8bf8c637b1 to your computer and use it in GitHub Desktop.
Using packaged dependencies during development

Using packaged dependencies during development

This tiny guide shows you how you can use TripleO UI dependencies packaged in openstack-tripleo-ui-deps during development.

Why? Many of our dependencies in package.json aren't pinned down to a specific version. This can cause problems when a small change is introduced in one or more of our dependencies. You can get the dependencies from the upstream RPM to see what will be included in production, and how you change will be affected.

Download the RPM

Go to https://trunk.rdoproject.org/centos7-master/deps/el7/SRPMS/ and download the latest openstack-tripleo-ui-deps source RPM.

Extract the RPM

$ mkdir rpm
$ cd rpm
$ wget http://....
$ rpm2cpio openstack-tripleo-ui-deps-<...>.src.rpm | cpio -imdv
$ tar xf tripleo-ui-deps-*.tar.gz

Move the dependencies to the root

$ ls
dist/ src/ rpm/ package.json
$ mv rpm/node_modules .

Done

@apevec
Copy link

apevec commented Jul 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment