Get a LEAP Koji Account

From LEAP Wiki
Jump to: navigation, search


Koji

The LEAP Project Koji build system can be found at the following location: koji.leapproject.ca. The LEAP Project uses the Koji build system to build all of the packages including: base packages, updated packages, addon packages, and EPEL packages. It can also be used to test builds of software that are not found in LEAP.

Get a LEAP Koji Account

A LEAP Koji account is available to anyone: working with LEAP, involved in the development of LEAP, or working with a ARM64 board that LEAP will support.

Instructions

1. Install koji package:

yum install koji

2. Go to: register.leapproject.ca

3. Fill in the information and click submit

Stop (medium size).png
Warning
Do not lose your certificate in next step!

4. Copy the certificate generated from the web browser to the following file: ~/.koji/client.crt

5. Create a file ~/.koji/ca.crt, with the following content:

-----BEGIN CERTIFICATE-----
MIIE9DCCA9ygAwIBAgIJAOq3DQ4zxA9kMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYD
VQQGEwJDQTEQMA4GA1UECBMHT250YXJpbzEQMA4GA1UEBxMHVG9yb250bzE2MDQG
A1UEChMtU2VuZWNhIENvbGxlZ2Ugb2YgQXBwbGllZCBBcnRzIGFuZCBUZWNobm9s
b2d5MTIwMAYDVQQLEylDZW50cmUgZm9yIERldmVsb3BtZW50IG9mIE9wZW4gVGVj
aG5vbG9neTENMAsGA1UEAxMEY29sbzAeFw0xNTA3MzEwMTU0MjNaFw0yNTA3Mjgw
MTU0MjNaMIGsMQswCQYDVQQGEwJDQTEQMA4GA1UECBMHT250YXJpbzEQMA4GA1UE
BxMHVG9yb250bzE2MDQGA1UEChMtU2VuZWNhIENvbGxlZ2Ugb2YgQXBwbGllZCBB
cnRzIGFuZCBUZWNobm9sb2d5MTIwMAYDVQQLEylDZW50cmUgZm9yIERldmVsb3Bt
ZW50IG9mIE9wZW4gVGVjaG5vbG9neTENMAsGA1UEAxMEY29sbzCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAK6CMhNgY243/ObDvVtf540LiOzMpfu4DIDB
khYJtWchhDC5AVJ91xi/u9XhNAHV6apF2hIBICqKcQHBRwTwi2MaGDHPXxCtKFW1
cKdrnvDcKbYfX1DkK1tFSQjV72XQWvpneCJOIo/cfCSm9OnGV8P+hhvb/EWiNZ+7
scG0hX+q3mFBKPV6eMVVDghNfMqwrLRhg/ndqwQTUmyVLR3CjAFXU+x029GVgyg4
EramTsiXoOeOphBn90NrDFLku0g5QZT5YAKwxvAjoxnAxqW8oOjAzYWf7Ky8aMN3
PsE+Yd+besSGpOSktWVpqfm/n0SR4yD9yhb3TbHkFvp/DNgC648CAwEAAaOCARUw
ggERMB0GA1UdDgQWBBSJTTv918M8cKbxO4AVOia6hPdkizCB4QYDVR0jBIHZMIHW
gBSJTTv918M8cKbxO4AVOia6hPdki6GBsqSBrzCBrDELMAkGA1UEBhMCQ0ExEDAO
BgNVBAgTB09udGFyaW8xEDAOBgNVBAcTB1Rvcm9udG8xNjA0BgNVBAoTLVNlbmVj
YSBDb2xsZWdlIG9mIEFwcGxpZWQgQXJ0cyBhbmQgVGVjaG5vbG9neTEyMDAGA1UE
CxMpQ2VudHJlIGZvciBEZXZlbG9wbWVudCBvZiBPcGVuIFRlY2hub2xvZ3kxDTAL
BgNVBAMTBGNvbG+CCQDqtw0OM8QPZDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEB
BQUAA4IBAQBrcpcyMtOIbGxgMkXjQP5R/tORSDSmIr7omCjSRy1FFUMJt8zrIZZG
3uiv/h6yF1bPAZhEeQY/3sssWNPelS3//vpicRtfaI4HwelTkBqMmKQWF62NEYna
bOPb6I+q0V77WuF7r215r+V+PQL1zt6+PbeeMpsk0smJSiRQmXYCwfQ/MePXQfFv
qlT26MXTGhdCTFfVD5fXMuLshtSZpEOOfO3uG/6Jpu2GNlfpviuDcSonHFoL/xsL
0Ze2WJN37/nFWkYNpbhUvZw2gk+dtJrkTNPprY904v6PP1vgnwHl0a3B1feFUVG8
77J/tPbpNFHsSydkwPvnkMY0o2MZMi5f
-----END CERTIFICATE-----

6. Create the following file: /etc/koji/leap-config

[koji]

;configuration for koji cli tool

;url of XMLRPC server
server = http://koji.leapproject.ca/kojihub

;url of web interface
weburl = http://koji.leapproject.ca/koji

;url of package download site
pkgurl = http://koji.leapproject.ca/kojifiles

;path to the koji top directory
;topdir = /mnt/koji

;configuration for Kerberos authentication

;the service name of the principal being used by the hub
;krbservice = host

;configuration for SSL authentication

;client certificate
cert = ~/.koji/client.crt

;certificate of the CA that issued the client certificate
ca = ~/.koji/ca.crt

;certificate of the CA that issued the HTTP server certificate
serverca = ~/.koji/ca.crt

7. Execute the following command:

sudo ln -s /usr/bin/arm-koji /usr/local/bin/leap-koji

8. A koji account will be created for you after a reviewing process. This process may take up to 5 days.