-
Notifications
You must be signed in to change notification settings - Fork 440
/
KankuFile
64 lines (63 loc) · 2.87 KB
/
KankuFile
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
domain_name: obs-server
default_job: tumbleweed
jobs:
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-Leap-15.4-JeOS
repository: images_leap_15_4
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.4//OBS:Server:Unstable.repo
- zypper -n --gpg-auto-import-keys ref -s
#- zypper -n install perl ruby2.5-rubygem-bundler zlib-devel ruby-devel ruby2.5-devel rsync bsdtar less git patch openldap2-devel libxml2-devel libmysqld-devel gcc make gcc-c++ libxslt-devel cyrus-sasl-devel nodejs-common obs-api-deps
- zypper -n install ruby2.5-rubygem-bundler zlib-devel ruby-devel ruby2.5-devel rsync bsdtar git patch openldap2-devel libxml2-devel libmysqld-devel gcc make gcc-c++ libxslt-devel cyrus-sasl-devel nodejs-common obs-api-deps
- rsync -av /tmp/kanku/ /root/open-build-service
- 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