https://wiki.debian.org/UsingQuilt
1)
#sudo apt-get install quilt
2)
#git clone https://github.com/sajuptpm/horizon.git -b packaging
#cd horizon
#git rebase origin/my_dashboard
3)
https://github.com/sajuptpm/horizon/blob/packaging/debian/README.compression
#sudo apt-get install python-lesscpy python-openstack-auth python-compressor
4)
#quilt pop top
5)
#./debian/rules refresh-static-assets
(cd openstack_dashboard/local; ln -sf local_settings.py.example local_settings.py)
python ./manage.py compress --force
/opt/stack/pbr/pbr/version.py:21: UserWarning: Module openstack_dashboard was already imported from /home/saju/rebase_dir/dum2/horizon/openstack_dashboard/__init__.py, but /opt/stack/horizon is being added to sys.path
import pkg_resources
Non-existent template at: /home/saju/rebase_dir/dum2/horizon/horizon/templates/base.html
Found 'compress' tags in:
/home/saju/rebase_dir/dum2/horizon/horizon/templates/horizon/_scripts.html
/home/saju/rebase_dir/dum2/horizon/openstack_dashboard/templates/_stylesheets.html
/home/saju/rebase_dir/dum2/horizon/horizon/templates/horizon/_conf.html
Compressing... done
Compressed 3 block(s) from 3 template(s).
rm -rf debian/static/openstack-dashboard/*
cp -r static/dashboard/* debian/static/openstack-dashboard/
rm -f openstack_dashboard/local/local_settings.py
6)
$ git status
# On branch packaging
# Your branch and 'origin/packaging' have diverged,
# and have 26 and 13 different commits each, respectively.
# (use "git pull" to merge the remote branch into yours)
#
# Changes not staged for commit:
# (use "git add/rm..." to update what will be committed)
# (use "git checkout --..." to discard changes in working directory)
#
# deleted: debian/static/openstack-dashboard/css/e1362ce456d5.css
# modified: debian/static/openstack-dashboard/manifest.json
#
# Untracked files:
# (use "git add..." to include in what will be committed)
#
# debian/static/openstack-dashboard/css/2aec13458cd9.css
no changes added to commit (use "git add" and/or "git commit -a")
saju@saju-Inspiron-5521:~/rebase_dir/dum2/horizon$
7)
$ git add debian/static/openstack-dashboard/css/2aec13458cd9.css
8)
$ git commit debian/static/openstack-dashboard/css/2aec13458cd9.css debian/static/openstack-dashboard/css/e1362ce456d5.css debian/static/openstack-dashboard/manifest.json
[packaging 7438705] compile .less files into .css files
2 files changed, 522 insertions(+), 232 deletions(-)
rename debian/static/openstack-dashboard/css/{e1362ce456d5.css => 2aec13458cd9.css} (91%)
9)
$ git push origin packaging
Username for 'https://github.com': sajuptpm@gmail.com
Password for 'https://sajuptpm@gmail.com@github.com':
To https://github.com/sajuptpm/horizon.git
! [rejected] packaging -> packaging (non-fast-forward)
error: failed to push some refs to 'https://github.com/sajuptpm/horizon.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
10)
$ git push -f origin packaging
or
$ git push origin packaging --force
Username for 'https://github.com': sajuptpm@gmail.com
Password for 'https://sajuptpm@gmail.com@github.com':
Counting objects: 136, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (81/81), done.
Writing objects: 100% (135/135), 295.58 KiB | 0 bytes/s, done.
Total 135 (delta 60), reused 96 (delta 42)
To https://github.com/sajuptpm/horizon.git
+ 42f2ee6...7438705 packaging -> packaging (forced update)
1)
#sudo apt-get install quilt
2)
#git clone https://github.com/sajuptpm/horizon.git -b packaging
#cd horizon
#git rebase origin/my_dashboard
3)
https://github.com/sajuptpm/horizon/blob/packaging/debian/README.compression
#sudo apt-get install python-lesscpy python-openstack-auth python-compressor
4)
#quilt pop top
5)
#./debian/rules refresh-static-assets
(cd openstack_dashboard/local; ln -sf local_settings.py.example local_settings.py)
python ./manage.py compress --force
/opt/stack/pbr/pbr/version.py:21: UserWarning: Module openstack_dashboard was already imported from /home/saju/rebase_dir/dum2/horizon/openstack_dashboard/__init__.py, but /opt/stack/horizon is being added to sys.path
import pkg_resources
Non-existent template at: /home/saju/rebase_dir/dum2/horizon/horizon/templates/base.html
Found 'compress' tags in:
/home/saju/rebase_dir/dum2/horizon/horizon/templates/horizon/_scripts.html
/home/saju/rebase_dir/dum2/horizon/openstack_dashboard/templates/_stylesheets.html
/home/saju/rebase_dir/dum2/horizon/horizon/templates/horizon/_conf.html
Compressing... done
Compressed 3 block(s) from 3 template(s).
rm -rf debian/static/openstack-dashboard/*
cp -r static/dashboard/* debian/static/openstack-dashboard/
rm -f openstack_dashboard/local/local_settings.py
6)
$ git status
# On branch packaging
# Your branch and 'origin/packaging' have diverged,
# and have 26 and 13 different commits each, respectively.
# (use "git pull" to merge the remote branch into yours)
#
# Changes not staged for commit:
# (use "git add/rm
# (use "git checkout --
#
# deleted: debian/static/openstack-dashboard/css/e1362ce456d5.css
# modified: debian/static/openstack-dashboard/manifest.json
#
# Untracked files:
# (use "git add
#
# debian/static/openstack-dashboard/css/2aec13458cd9.css
no changes added to commit (use "git add" and/or "git commit -a")
saju@saju-Inspiron-5521:~/rebase_dir/dum2/horizon$
7)
$ git add debian/static/openstack-dashboard/css/2aec13458cd9.css
8)
$ git commit debian/static/openstack-dashboard/css/2aec13458cd9.css debian/static/openstack-dashboard/css/e1362ce456d5.css debian/static/openstack-dashboard/manifest.json
[packaging 7438705] compile .less files into .css files
2 files changed, 522 insertions(+), 232 deletions(-)
rename debian/static/openstack-dashboard/css/{e1362ce456d5.css => 2aec13458cd9.css} (91%)
9)
$ git push origin packaging
Username for 'https://github.com': sajuptpm@gmail.com
Password for 'https://sajuptpm@gmail.com@github.com':
To https://github.com/sajuptpm/horizon.git
! [rejected] packaging -> packaging (non-fast-forward)
error: failed to push some refs to 'https://github.com/sajuptpm/horizon.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
10)
$ git push -f origin packaging
or
$ git push origin packaging --force
Username for 'https://github.com': sajuptpm@gmail.com
Password for 'https://sajuptpm@gmail.com@github.com':
Counting objects: 136, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (81/81), done.
Writing objects: 100% (135/135), 295.58 KiB | 0 bytes/s, done.
Total 135 (delta 60), reused 96 (delta 42)
To https://github.com/sajuptpm/horizon.git
+ 42f2ee6...7438705 packaging -> packaging (forced update)
No comments:
Post a Comment