pkg-wizard 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
data/docs/build-bot.md CHANGED
@@ -20,12 +20,37 @@ If you have tried to install and use Koji before, you know the drill. Having sai
20
20
  Used in combination with pkg-wizard [remote-build](remote-build.html), you can:
21
21
 
22
22
  * Send source RPMS to build-bot (RPM spec file and sources can be local or remote)
23
- * Monitor the build process
23
+ * Monitor the build process
24
24
  * Tag builds
25
25
  * Create yum repos
26
26
  * Rebuild failed builds
27
27
  * Review build logs
28
28
 
29
+ ## RUNNING A PKG-WIZARD BUILD-BOT
30
+
31
+ I assume that you have pkg-wizard already installed. Refer to [INSTALLING PKG-WIZARD](install.html) and [INIT-ENV](init-env.html) otherwise.
32
+
33
+ Starting a new build-bot for the first time:
34
+
35
+ 1. Create a buildbot user
36
+
37
+ `$ adduser buildbot`
38
+
39
+ 2. Add the buildbot user to the mock group
40
+
41
+ `$ gpasswd -a buildbot mock`
42
+
43
+ 3. Change user ID to buildbot and change to the /home/buildbot directory
44
+
45
+ `$ su buildbot && cd`
46
+
47
+ 4. Start the build-bot
48
+
49
+ `$ pkgwiz build-bot --mock-profile frameos-6`
50
+
51
+ This will start a build-bot listening in port 4567/tcp, using the mock profile from /etc/mock/frameos-6.cfg. From now on, the build-bot is ready to accept packages.
52
+
53
+ Have a look at [pkgwiz](pkgwiz.html) [remote-build](remote-build.html) to learn how to send packages to the build-bot.
29
54
 
30
55
  ## USAGE
31
56
 
@@ -43,7 +68,24 @@ Usage: pkgwiz build-bot (options)
43
68
  --working-dir DIR
44
69
  -h, --help Show this message
45
70
 
71
+ ## UNDERSTANDING BUILD-BOT DIRECTORY LAYOUT
72
+
73
+ When pkg-wizard build-bot is started for the first time, it will create a few directories in the current working directory.
74
+
75
+ **incoming**
76
+
77
+ **output**
78
+
79
+ **failed**
80
+
81
+ **snapshot**
82
+
83
+ **tags**
84
+
85
+ **workspace**
86
+
87
+ **archive**
46
88
 
47
89
  ## SEE ALSO
48
90
 
49
- [PKGWIZ](pkgwiz.html), [REMOTE-BUILD](remote-build.html), [INSTALLING PKG-WIZARD](install.html)
91
+ [PKGWIZ](pkgwiz.html), [INIT-ENV](init-env.html), [REMOTE-BUILD](remote-build.html), [INSTALLING PKG-WIZARD](install.html)
data/docs/install.md CHANGED
@@ -8,9 +8,11 @@ pkg-wizard -- simple framework and tools to build and manage RPM packages
8
8
  pkg-wizard installs [pkgwiz](pkgwiz.html), the command line tool used to manage and build RPMS/SRPMS.
9
9
  ## INSTALLATION
10
10
 
11
- 1. Install rubygems
11
+ Follow these steps (as root):
12
12
 
13
- `yum install rubygems`
13
+ 1. Install dependencies
14
+
15
+ `yum install rubygems make ruby-devel gcc gcc-c++`
14
16
 
15
17
  2. Install pkg-wizard
16
18
 
data/lib/pkg-wizard.rb CHANGED
@@ -4,7 +4,7 @@ require 'mixlib/cli'
4
4
 
5
5
  module PKGWizard
6
6
 
7
- VERSION = '0.1.24'
7
+ VERSION = '0.1.25'
8
8
 
9
9
  class Distribution
10
10
  def self.detect
@@ -38,13 +38,18 @@ module PKGWizard
38
38
  if rhel_ver == "6"
39
39
  puts "* Installing EPEL 6 repo.."
40
40
  abort_if_err "rpm -Uvh #{File.dirname(__FILE__)}/../../../packages/epel-release-6-5.noarch.rpm --force"
41
+ puts "* Installing RBEL 6 repo.."
42
+ abort_if_err "rpm -Uvh #{File.dirname(__FILE__)}/../../../packages/rbel6-release-1.0-1.el6.noarch.rpm --force"
41
43
  elsif rhel_ver == "5"
42
44
  puts "* Installing EPEL 5 repo.."
43
45
  abort_if_err "rpm -Uvh #{File.dirname(__FILE__)}/../../../packages/epel-release-5-4.noarch.rpm --force"
46
+ puts "* Installing RBEL 5 repo.."
47
+ abort_if_err "rpm -Uvh #{File.dirname(__FILE__)}/../../../packages/rbel5-release-1.0-1.el5.noarch.rpm --force"
44
48
  else
45
49
  end
46
50
 
47
- abort_if_err "yum install -y git rpm-build rpmdevtools mock createrepo yum-utils screen"
51
+ abort_if_err "yum clean metadata"
52
+ abort_if_err "yum install -y nodejs git rpm-build rpmdevtools mock createrepo yum-utils screen"
48
53
  elsif File.exist?('/etc/lsb-release') and \
49
54
  File.read('/etc/lsb-release') =~ /DISTRIB_ID=Ubuntu/
50
55
  puts '* Installing Ubuntu requirements... '
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-wizard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 24
10
- version: 0.1.24
9
+ - 25
10
+ version: 0.1.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-07 00:00:00 +02:00
18
+ date: 2011-04-08 00:00:00 +02:00
19
19
  default_executable: pkgwiz
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -216,6 +216,8 @@ files:
216
216
  - lib/pkg-wizard/utils.rb
217
217
  - packages/epel-release-5-4.noarch.rpm
218
218
  - packages/epel-release-6-5.noarch.rpm
219
+ - packages/rbel5-release-1.0-1.el5.noarch.rpm
220
+ - packages/rbel6-release-1.0-1.el6.noarch.rpm
219
221
  - resources/wslogview/index.html.tmpl
220
222
  - resources/wslogview/jquery.js
221
223
  - resources/wslogview/screen.css