open5gs/docker
Sukchan Lee 843c4950ac [ASN1C] Fixed asn1c library on 32bit (#2934)
APER encoding fails when using the asn_uint642INTEGER function on a 32-bit machine as shown below.

```C
   asn_uint642INTEGER(AMF_UE_NGAP_ID, 0xffffffff);
   ...
   aper_encode_to_buffer(...)
```

INTEGER APER encode/decode functions seem to be operating internally with long variables instead of intmax_t.
That is probably the reason of the failure.

@v0-e fixed this issues in the mouse07410/asn1c pull request.
https://github.com/mouse07410/asn1c/pull/176
https://github.com/mouse07410/asn1c/pull/177
2024-02-12 14:00:06 +09:00
..
alpine/latest Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
build Squashed commit of the following: 2022-11-04 17:39:29 +09:00
debian [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
fedora/latest Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
i386 [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
package Rename Project to Open5GS 2019-10-27 17:41:14 +09:00
ubuntu [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
webui [WebUI] Fix launch problem in docker (#2767) (#2769) 2023-12-04 22:16:10 +09:00
README.md Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
check.sh Squashed commit of the following: 2022-11-04 17:39:29 +09:00
docker-compose.yml [WebUI] Fix launch problem in docker (#2767) (#2769) 2023-12-04 22:16:10 +09:00

README.md

Docker running example

  • Development

    $ docker compose run dev

  • Run WebUI

    $ docker-compose up webui

  • Test

    $ docker compose run test

  • Test(ubuntu:focal)

    $ TAG=focal docker compose run test

  • Development(fedora:latest)

    $ DIST=fedora docker compose run dev

  • All Test with All Environment

    $ ./check.sh

  • Runtime

    $ docker compose run run

For OpenSUSE Build Service Release

  • Build Package

    $ ./build-aux/git-version-gen . > .tarball-version
    $ dpkg-source -b .
    $ rm -f .tarball-version
    
  • Get Release Key

    $ wget http://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/xUbuntu_18.04/Release.key
    $ sudo apt-key add Release.key
    
  • Setup Repository

    $ sudo sh -c "echo 'deb https://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/xUbuntu_18.04/ ./' > /etc/apt/sources.list.d/open5gs-latest.list"
    $ sudo apt-get update
    

For Launchpad Release

  • Run Docker

    $ docker-compose run dev
    
  • Setup Debian Environment

export DEBFULLNAME='Sukchan Lee'
export DEBEMAIL='acetcom@gmail.com'
  • Transfer GPG key
  $ gpg --export-secret-keys --armor --output private.asc
  $ gpg --import private.asc
  $ gpg --export > public.asc
  $ gpg --import public.asc
  • Version Change

    $ cat ./meson.build
    $ cat ./webui/package.json
    $ cat ./webui/package-lock.json
    $ cat ./docs/assets/webui/install
    
  • New NF

    $ cat debian/control
    $ cat configs/systemd/open5gs-scpd.service.in
    $ cat configs/logrotate/open5gs.in
    $ cat configs/newsyslog/open5gs.conf.in
    
  • Upload OpenBuildService

    $ dch -i
    $ meson subprojects download freeDiameter prometheus-client-c
    $ debuild -S -uc -us -d
    $ osc co home:acetcom:open5gs latest
    $ cd home\:acetcom\:open5gs/latest/
    $ cp ~/git/open5gs_1.0.0.* .
    $ osc ci -m "Update it"
    
  • Upload LaunchPad

    $ dch -i
    $ meson subprojects download freeDiameter prometheus-client-c
    $ debuild -S -d
    $ dput ppa:open5gs/latest *.source.changes
    
  • Tagging

    $ git tag v1.x.x -a
    
  • Build package

    $ dpkg-buildpackage -d