forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKankuFile
More file actions
162 lines (161 loc) · 6.1 KB
/
KankuFile
File metadata and controls
162 lines (161 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
domain_name: obs-server
default_job: appliance
jobs:
appliance:
-
use_module: Kanku::Handler::SetJobContext
options:
login_user: root
login_pass: opensuse
-
use_module: Kanku::Handler::OBSCheck
options:
project: home:M0ses:OBS:Server:Unstable
package: OBS-Appliance:qcow2
repository: images
-
use_module: Kanku::Handler::ImageDownload
-
use_module: Kanku::Handler::CreateDomain
options:
memory: 8G
vcpu: 4
use_9p: 1
template: with-spice
-
use_module: Kanku::Handler::PrepareSSH
-
use_module: Kanku::Handler::WaitForSystemd
-
use_module: Kanku::Handler::Reboot
options:
wait_for_console: 1
login_timeout: 900
-
use_module: Kanku::Handler::ExecuteCommandViaSSH
options:
username: root
commands:
- zypper -n --gpg-auto-import-keys ref -s
- zypper -n install perl-Test-Most
- cp -av /tmp/kanku/ .
- make -C /root/kanku/dist test_system
- PERL5LIB=/usr/lib/build/ make -C /root/kanku/src/backend test_unit
- make -C /root/kanku/dist/t/osc test_system
tumbleweed:
-
use_module: Kanku::Handler::SetJobContext
options:
login_user: root
login_pass: kankudai
-
use_module: Kanku::Handler::OBSCheck
options:
api_url: https://api.opensuse.org/public/
project: devel:kanku:images
package: openSUSE-Tumbleweed-JeOS
repository: images_tumbleweed
-
use_module: Kanku::Handler::ImageDownload
-
use_module: Kanku::Handler::CreateDomain
options:
memory: 6G
vcpu: 2
use_9p: 1
management_interface: eth0
-
use_module: Kanku::Handler::PrepareSSH
-
use_module: Kanku::Handler::WaitForSystemd
-
use_module: Kanku::Handler::ExecuteCommandViaSSH
options:
commands:
- zypper ar https://download.opensuse.org/repositories/OBS:/Server:/Unstable/openSUSE_Factory/OBS:Server:Unstable.repo
# FIXME: remove home:M0ses:OBS:Server:Unstable
- zypper ar https://download.opensuse.org/repositories/home:/M0ses:/OBS:/Server:/Unstable/openSUSE_Factory/home:M0ses:OBS:Server:Unstable.repo
- zypper -n --gpg-auto-import-keys ref -s
- zypper -n install obs-server obs-api obs-worker obs-signd obs-service-tar_scm obs-service-obs_scm obs-service-set_version obs-service-tar gitea
- perl -p -i -e 's/^OBS_API_AUTOSETUP=.*/OBS_API_AUTOSETUP="yes"/' /etc/sysconfig/obs-server || exit 1
- perl -p -i -e 's/^OBS_STORAGE_AUTOSETUP=.*/OBS_STORAGE_AUTOSETUP="yes"/' /etc/sysconfig/obs-server || exit 1
- perl -p -i -e 's/OBS_USE_SLP="yes"/OBS_USE_SLP="no"/' /etc/sysconfig/obs-server
- perl -p -i -e "s/^\s*OBS_WORKER_INSTANCES=.*/OBS_WORKER_INSTANCES=1/" /etc/sysconfig/obs-server
- systemctl start obsstoragesetup || exit 1
- systemctl start obsrepserver
- /usr/lib/obs/server/setup-appliance.sh --non-interactive > /tmp/setup-appliance.log 2>&1
- for i in worker dispatcher deltastore repserver service servicedispatch srcserver signer signd;do systemctl restart obs$i ;done
- zypper -n in perl-Devel-Cover osc perl-Test-Most
- echo -en "[client]\nuser = root\npassword = opensuse\n" > /root/.my.cnf
-
use_module: Kanku::Handler::Reboot
-
use_module: Kanku::Handler::WaitForSystemd
-
use_module: Kanku::Handler::ExecuteCommandViaSSH
options:
username: root
commands:
- cp -av /tmp/kanku/ .
- make -C /root/kanku/dist test_system
- PERL5LIB=/usr/lib/build/ make -C /root/kanku/src/backend test_unit
- make -C /root/kanku/dist/t/osc test_system
current:
-
use_module: Kanku::Handler::SetJobContext
options:
login_user: root
login_pass: kankudai
-
use_module: Kanku::Handler::OBSCheck
options:
api_url: https://api.opensuse.org/public/
project: devel:kanku:images
package: openSUSE-Leap-15.6-JeOS
repository: images_leap_15_6
arch: x86_64
-
use_module: Kanku::Handler::ImageDownload
-
use_module: Kanku::Handler::CreateDomain
options:
memory: 6G
vcpu: 2
use_9p: 1
management_interface: eth0
-
use_module: Kanku::Handler::PrepareSSH
-
use_module: Kanku::Handler::WaitForSystemd
-
use_module: Kanku::Handler::ExecuteCommandViaSSH
options:
commands:
- zypper ar https://download.opensuse.org/repositories/OBS:/Server:/Unstable/15.6/OBS:Server:Unstable.repo
# FIXME: remove home:M0ses:OBS:Server:Unstable
- zypper ar https://download.opensuse.org/repositories/home:/M0ses:/OBS:/Server:/Unstable/15.6/home:M0ses:OBS:Server:Unstable.repo
- zypper -n --gpg-auto-import-keys ref -s
- zypper -n install obs-server obs-api obs-worker obs-signd obs-service-tar_scm obs-service-obs_scm obs-service-set_version obs-service-tar
- perl -p -i -e 's/^OBS_API_AUTOSETUP=.*/OBS_API_AUTOSETUP="yes"/' /etc/sysconfig/obs-server || exit 1
- perl -p -i -e 's/^OBS_STORAGE_AUTOSETUP=.*/OBS_STORAGE_AUTOSETUP="yes"/' /etc/sysconfig/obs-server || exit 1
- perl -p -i -e 's/OBS_USE_SLP="yes"/OBS_USE_SLP="no"/' /etc/sysconfig/obs-server
- perl -p -i -e "s/^\s*OBS_WORKER_INSTANCES=.*/OBS_WORKER_INSTANCES=1/" /etc/sysconfig/obs-server
- systemctl start obsstoragesetup || exit 1
- systemctl start obsrepserver
- /usr/lib/obs/server/setup-appliance.sh --non-interactive > /tmp/setup-appliance.log 2>&1
- for i in worker dispatcher deltastore repserver service servicedispatch srcserver signer signd;do systemctl restart obs$i ;done
- zypper -n in perl-Devel-Cover osc perl-Test-Most
- echo -en "[client]\nuser = root\npassword = opensuse\n" > /root/.my.cnf
-
use_module: Kanku::Handler::Reboot
-
use_module: Kanku::Handler::WaitForSystemd
-
use_module: Kanku::Handler::ExecuteCommandViaSSH
options:
username: root
commands:
- cp -av /tmp/kanku/ .
- make -C /root/kanku/dist test_system
- PERL5LIB=/usr/lib/build/ make -C /root/kanku/src/backend test_unit
- make -C /root/kanku/dist/t/osc test_system