https://github.com/elektrobit/corbos_scm
OBS service Debian Sources
https://github.com/elektrobit/corbos_scm
Last synced: 3 months ago
JSON representation
OBS service Debian Sources
- Host: GitHub
- URL: https://github.com/elektrobit/corbos_scm
- Owner: Elektrobit
- License: mit
- Created: 2021-12-18T15:10:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T11:20:10.000Z (about 3 years ago)
- Last Synced: 2024-12-28T07:41:56.953Z (5 months ago)
- Language: Python
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Corbos SCM - OBS service
========================An Open Build Service (OBS) service to fetch Debian
packages sources. The service can be used for Debian/Ubuntu
based packages and utilizes the ubuntu-dev-tools from
a container. Calling from a container allows to use the Ubuntu
devtools toolchain independently from the host system as long
as the host supports the podman container engineAs an example, the following steps are needed to build
the `curl` package from Debian for Ubuntu(20.10) in OBS.1. Install `corbos_scm` service
Install the service provided at:
* https://build.opensuse.org/package/show/home:marcus.schaefer/python-corbos_scm
locally and on the remote backend server of your build service
Warning:
**The example below can only work if the corbos_scm service
was installed on the backend server of your build service.**2. Create a package in OBS
.. code:: bash
osc mkpac curl
3. Create the `_service` file and add it
.. code:: bash
cd curl
touch _service
osc add _service4. Add the following contents to the `_service` file
.. code:: xml
registry.example.com
ubdevtools:latest
curl
5. Commit the service setup
.. code:: bash
osc ci
6. Add Ubuntu repository to allow dependency resolving and
the package build.. code:: bash
osc meta -e prj
Add a repo definition which allows to resolve the required
build dependencies. The following is just an example matching
repos as they exist in the public build service provided by
SUSE.Note:
**Be aware that the following repo definiton just serves
as an example and will most likely not be available in
the exact same way on a custom OBS server.**.. code:: xml
x86_64
Container Setup
---------------If there is no container with ubuntu-dev-tools available, the
following KIWI description can be used to build one.. code:: xml
Marcus Schäfer
[email protected]
Runtime container ubuntu dev tools
1.0.1
apt
Behind the Scenes
-----------------The `corbos_scm` service is very simple. It uses the tooling
provided by the ubuntu-dev-tools to create the source files
such that OBS can build the package.On the local system the service can be tested with:
.. code:: bash
osc service localrun
This call creates the mentioned data locally. For the service to
be effective on the remote backend of OBS, it's required to install
it there. This is because obs creates a command call from the
information provided in the `_service` file and issues that command
on its remote backend.