-
Notifications
You must be signed in to change notification settings - Fork 52
[GAPRINDASHVILI] Updating assets on an appliance
Martin Hradil edited this page Jun 12, 2019
·
2 revisions
Instructions for recompiling assets on ManageIQ gaprindashvili appliances. For other releases, generic version.
Please note that these instructions are explicitly not supported, follow at your own risk.
This is needed for any changes more advanced than altering public/custom.css
, such as changing our Javascript code, images or css.
(downstream only: You have to use the normal process to register the appliance, then the correct repos will be there. Otherwise, installing gcc will fail.)
# install yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo |
sudo tee /etc/yum.repos.d/yarn.repo
curl --silent --location https://rpm.nodesource.com/setup_6.x |
bash -
yum install yarn
# install gcc and g++
yum install gcc gcc-c++
# install bower
yarn global add bower
# downstream only
GEMS=/opt/rh/cfme-gemset/bundler/gems/
# upstream only
GEMS=/usr/local/lib/ruby/gems/2.4.0/bundler/gems/
# install dependencies for v2v - relevant only for 5.9.3+, miq_v2v_plugin until 5.9.4 (gaprindashvili 5)
cd $GEMS/manageiq-v2v-*
yarn
# cfme-providers* for downstream
cd $GEMS/manageiq-providers-nuage-*
yarn
# install dependencies for ui-classic
cd $GEMS/manageiq-ui-classic-*
bower install -F
yarn
(on downstream appliance, use cfme-ui-classic-*
instead of manageiq-ui-classic-*
)
# now, assets can be precompiled
vmdb
rake assets:precompile