source: ProjectBuilder/devel/pb-doc/pb-demo@ 1835

Last change on this file since 1835 was 1835, checked in by Bruno Cornec, 10 years ago
  • Update pb presentation for LCA2014 and demo script (wasn't it time ;-)
File size: 3.0 KB
RevLine 
[814]1Demo of project-builder.org
2===========================
3
4# First demonstrate the way of working for pb itself
[1835]5cd ~/local/pb|~/pb|~/svn-git/pb
[814]6# Show the various versions available in this SVK exported dir
7ls
8# get the current tag of the SVK repository
[1835]9svk info|svn info|git svn info
[814]10
11# get the current version of project-builder
12rpm -q project-builder
[817]13pb --help
[1835]14pb
[814]15
16# Decide to build a package for project-builder based on that devel version
17# to replace the one currently installed
[1835]18pb -p pb -r devel sbx2build|cms2build
[814]19
20# Show the upstream part
[1835]21ls -altg /home/bruno/svn-git/pb/delivery/
22tar tvfz /home/bruno/svn-git/pb/delivery/project-builder-develXXX.tar.gz
[814]23
24# Show the pb specific part
[1835]25tar tvfz /home/bruno/svn-git/pb/delivery/project-builder-develXXX.pbconf.tar.gz
[814]26
27# Now make the packages
28pb -p pb build2pkg
29
30# Look at the latest pckges created
[1835]31ls -altrg /home/bruno/svn-git/pb/build/RPMS/noarch
[814]32
33# Install the generated packages
[1835]34sudo urpmi /home/bruno/svn-git/pb/build/RPMS/noarch/*.rpm
[814]35
36# Check that it's the right one
[816]37rpm -q project-builder
[1407]38pb --version
[1835]39git svn info
[814]40
[817]41# Now show how easy it's to build for another distro in a VM
[1101]42ls /home/qemu
[1835]43-> pb -p pb -m debian-7.1-x86_64 sbx2vm
44ls -al /var/ftp/pub/pb/test/debian/7.1/
45ls -al /var/ftp/pub/pb/test/debian/dists/7.1/
46
47pb -p pb -m mageia-3-i386 sbx2vm
[817]48# Now show how easy it's to build for another distro in a VE
[1288]49ls /home/rpmbootstrap
[1835]50pb -p pb -m centos-6-x86_64 build2ve
51pb -p pb -m ubuntu-11.10-x86_64 build2ve
52-> pb -p pb -m debian-6.0-x86_64 sbx2ve
53ls -al /var/ftp/pub/pb/test/debian/6.0/
54ls -al /var/ftp/pub/pb/test/debian/dists/6.0/
[816]55
[817]56# Now show how easy it's to build for another project for which I'm upstream
[1835]57-> pb -p mondorescue -m debian-6.0-x86_64 sbx2ve
[1288]58
[817]59# Now show how easy it's to build for another project for which I'm not upstream with patches
[1835]60-> pb -p afio -r 2.5 -m debian-6.0-x86_64 sbx2ve
[816]61
[1101]62# Look at conf files
63cat ~/.pbrc
[1288]64cat /home/rpmbootstrap/.pbrc
[1835]65cat ~/svn-git/pb/projects/afio/pbconf/2.5/afio.pb
66ls -R ~/svn-git/pb/projects/afio/pbconf/2.5/
[1288]67
68# Short Lab
69# in pblab account
70# prepa
71# As root
72rm -rf /prj/svn
73svnadmin create /prj/svn
74cat >> /prj/svn/conf/authz << EOF
75[/]
76pblab = rw
77* = r
78EOF
79cat >> /prj/svn/conf/passwd << EOF
80pblab = pblab
81EOF
82cat > /prj/svn/conf/svnserve.conf << EOF
83[general]
84password-db = passwd
85authz-db = authz
86[sasl]
87EOF
88killall svnserve
89~pblab/bin/rc.local
90
91# as pblab
92rm -rf pb .pbrc
93cat > afio.pb.add << EOF
94defpkgdir afio = dummy
95pbpackager default = Big Chief <bigchief@hp.com>
96projver afio = 2.5
97projtag afio = 1
98pburl afio = ftp://localhost/src/afio-2.5.tar.gz
99pbrepo afio = ftp://localhost
100EOF
101
102pb -p afio clean
103cat ~/.pbrc
104cat >> ~/.pbrc << EOF
105pbconfurl afio = svn://localhost/pb/afio/pbconf
106EOF
107echo "pbdefdir default = \$ENV{'HOME'}/pb" >> ~/.pbrc
108mkdir pb
109svn import pb svn://localhost/pb -m "Initial creation of pb repo"
110# passwd asked here
111
112cd pb
113svn co svn://localhost/pb .
114pb -p afio newproj afio
115# passwd asked here
116
117cat ~/afio.pb.add >> afio/pbconf/afio.pb
118pb -p afio sbx2build
119
120# with Ubuntu CD
121cat >> ~/.pbrc << EOF
122vmpath default = /home/qemu
123EOF
124
Note: See TracBrowser for help on using the repository browser.