Project

General

Profile

Nightly Builds » History » Revision 38

Revision 37 (laforge, 11/18/2020 03:18 PM) → Revision 38/58 (osmith, 02/11/2021 05:34 PM)

{{>toc}} 

 h1. _Nightly_ Builds 

 sysmocom has setup nightly Debian/Ubuntu source package builds for the current master version of the Osmocom GSM related software. The packages are built for various Linux distributions, find the complete list "here":https://build.opensuse.org/repositories/network:osmocom:nightly. 

  

 *NOTE: USE NIGHTLY BUILDS ONLY FOR DEVELOPMENT/TESTING*.    The [[Latest_Builds]] are a more stable alternative. 

 Starting from March 18, 2016, there are daily builds for 

 * Debian 8 (i586, amd64) 
 * Debian 9 (i586, amd64, armv7l, aarch64) 
 * Debian 10 (i586, amd64, armv7l, aarch64) 
 * Debian testing (amd64) 
 * Debian unstable (amd64) 
 * Raspbian 10 (armv7l) 
 * xUbuntu 16.04 (i586, amd64) 
 * xUbuntu 18.04 (i586, amd64) 
 * xUbuntu 18.10 (i586, amd64) 
 * xUbuntu 19.04 (amd64) 
 * xUbuntu 19.10 (amd64) 


 The Osmocom jenkins builds will build source packages once a day and uploads upload them to the Open(SUSE) Build Service (OBS).  

 The OBS page is at https://build.opensuse.org/project/show/network:osmocom:nightly 

 A nice status overview on the builds is available at https://build.opensuse.org/project/monitor/network:osmocom:nightly 

 h2. How to use the _osmocom:nightly_ builds 

 h3. Debian based distributions 

 The download repositories are at: 

 * Debian 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_Testing/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_Unstable/ 
 * Raspbian 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/Raspbian_10/ 
 * Ubuntu 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_19.04/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_19.10/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_20.04/ 
 ** https://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_20.10/ 

 For example, adding the repository to your Debian 10 system: 
 <pre> 
 $ sudo su 
 # wget https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/Release.key  
 # sha256sum Release.key 
 => b5e2c1df9ff80bc73dd00a0c153ef308e7ec643ddb859e69789fcd4a9b1893d3    Release.key 
 # apt-key add Release.key 
 # rm Release.key 
 # echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list 
 # apt-get update 
 # exit 
 </pre> 

 h3. RPM based distributions 

 Example for CentOS_8, adjust it as necessary for other distributions as found "here":https://download.opensuse.org/repositories/network:osmocom:nightly/. 

 <pre> 
 $ sudo su 
 # wget https://download.opensuse.org/repositories/network:osmocom:nightly/CentOS_8/network:osmocom:nightly.repo 
 # sha256sum network:osmocom:nightly.repo 
 71cf8a1f6d84b3ddc279fc816e85205f8c8bb3c8a4c941646da5ae90adfe3988    network:osmocom:nightly.repo 
 # mv network:osmocom:nightly.repo /etc/yum.repos.d/ 
 # exit 
 </pre> 

 As soon as you try to install a package from the Osmocom repository (e.g. <code>dnf install osmo-hlr</code>), @dnf@ will import the repositories GPG key as defined in the .repo file ("repomd.xml.key":https://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8/repodata/repomd.xml.key), download the repository index and finally install the Osmocom packages. 

 h2. How are those builds created? 

 See https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly/ for corresponding build job. 

 The script at http://git.osmocom.org/osmo-ci/tree/scripts/osmocom-nightly-packages.sh is used to 
 * obtain a current clone of the respective git repository 
 * check out the current master in that repository 
 * build debian source packages 
 * upload them to the OBS *network:osmocom:nightly* sub-project. 

 It's possible to reproduce the nightly builds locally using 
 <pre> 
 $ osc co 
 $ osc build 
 </pre> 

 To test local changes with one can create local packages the same way jenkins job above does: 
 <pre> 
 $ gbp buildpackage -S -uc -us --git-ignore-new --git-export-dir=/tmp 
 </pre> 
 and then than repeat build steps outlined above for local build. 

 h2. E-Mail Notifications of build failures 

 Build failure notifications are sent to the "gerrit-log mailing list":https://lists.osmocom.org/mailman/listinfo/gerrit-log 

 h2. Mirrors 

 In case you have trouble reaching download.opensuse.org, you can try https://ftp.uni-stuttgart.de/opensuse/repositories/network:/osmocom:/ as a base URL.
Add picture from clipboard (Maximum size: 48.8 MB)