Commit Graph

7 Commits

Author SHA1 Message Date
Alexander Couzens cdd84e4a5a rebar3: define a release
Further with the release, rebar3 will also start the application
when calling `rebar3 shell`.

Change-Id: I76cb16e28b5bc6fb231566be1bd7905235fdf56b
2023-11-10 13:19:20 +01:00
Oliver Smith d7e225b098 systemd: depend on networking-online.target
Related: SYS#6400
Change-Id: I9c0cc0779f9ddb7520a565668b7cde07c6ad55d8
2023-05-26 14:10:44 +02:00
Alexander Couzens b88b1564fc contrib/generate_build_dep.sh: remove erlang bytecode from checkouts
The checkout directory should only contains source and no erlang bytecode.
Otherwise it might not compile when creating the build_dep.tar.gz on a machine
with newer erlang and try to build the package on a system with older erlang.

Change-Id: I101119392c6d0fad264c2551fded10288c87da5e
2022-08-30 12:54:20 +00:00
Alexander Couzens c243463bf7 debian: add generate_build_dep.sh to vendor erlang dependencies
To build on OBS the source package must include all dependencies.
Downloading dependencies isn't allowed. generate_build_dep.sh will
download all dependencies.
The jenkins job to update OBS should do this before calling
`dpkg-buildpackage -S` to build a source package.

Related: SYS#6006
Change-Id: I22041887fd1b72ea328605d18801d412b86bfc9c
2022-07-20 19:51:00 +00:00
Alexander Couzens 700979a5b1 debian: rework packaging
- use the rebar3' debian/rules as template
- use override targets instead of the exact targets
- only install the escriptize osmo_dia2gsup file

Related: SYS#6006
Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
2022-07-20 19:51:00 +00:00
Oliver Smith 173095f9fa debian: add packaging
Add initial debian packaging and a systemd service that starts
osmo_dia2gsup. Given that dependencies listed in rebar.lock are not
packaged in debian 11, this just uses rebar3 to download and compile
the dependencies during the build.

Resulting erlang files are installed to the following path, where they
become available in the erlang shell (erl):
  /lib/erlang/lib/{name_of_component}/ebin/

Related: SYS#6006
Change-Id: Ic55bca1260f992d0ed8583e7c7fe948ba0160d4d
2022-07-15 15:08:51 +02:00
Oliver Smith 47d080fa01 contrib/jenkins.sh: new file
Related: OS#4345
Change-Id: I688b71271fe80b4ec05304e9ed8abc8707cb7b58
2020-01-17 09:01:18 +01:00