Commit Graph

19 Commits

Author SHA1 Message Date
Pau Espin f9596689c3 open5gs-master: Make mongodb available in the image
The open5gs-latest image installs mongodb, but the master one doesn't.
Having a mongodb image is required to run together with open5gs-hssd.

Related: SYS#6588
Change-Id: Id6dde5f54b666279c102eb14fabb87194192c9e4
2023-10-10 17:38:04 +02:00
Pau Espin a15ab99d07 open5gs-master: Install open5gs-dbctl to /usr/bin
meson install doesn't install that file because it's aimed at
developers. However, debian package does install it manually in
debian/open5gs-common.install.
Hence, the app is available in open5gs-latest docker image, but not in
open5gs-master. Manually copy it to /usr/bin to have both behave the
same in this aspect.

Related: SYS#6588
Change-Id: I54a760d04e6522d843e6d65b94ef6067e502fbaa
2023-10-10 17:38:04 +02:00
Pau Espin b3c5679bec open5gs-master: Fix indentation
Use tabs everywhere, as usual with other Dockerfiles (eg.
open5gs-latest).

Change-Id: Ie4e72f484797ada718915e837cd38be574136631
2023-10-10 15:37:49 +00:00
Oliver Smith 421bac2d86 open5gs-master: drop unknown option metrics_impl
The metrics_impl option has been dropped in the related commit as
prometheus is now the default in open5gs. With newer meson, unknown
options are treated as errors (used to be warnings before).

Fix for:
ERROR: Unknown options: "metrics_impl"

Related: OS#6057
Related: 982ac61894
Change-Id: Ib859ef7389928019addecae08df2011eecda80ad
2023-07-21 10:59:03 +02:00
Oliver Smith 72ed70d4fc open5gs-master: useradd: don't hardcode uid
Give the user that runs open5gs a different UID than the build user from
the debian-bookworm-build container.

Fix for:
useradd: UID 1000 is not unique

Related: OS#6057
Change-Id: I49051e038740cfccbb11ad33a1884bb7de318710
2023-07-21 10:39:59 +02:00
Oliver Smith a05e3a66e5 open5gs-master: use DISTRO variable
Instead of hardcoding bullseye, use the DISTRO variable so it now
defaults to bookworm.

Related: OS#6057
Change-Id: Ia392de80ee1f0844563f08a6dc775678ef6b263f
2023-07-20 08:05:12 +00:00
Vadim Yanitskiy 4c3d879924 open5gs-master: fix comment in Dockerfile
Change-Id: I34577dd39051f429af8257afe075f22b20cfdfe4
Related: OS#5913
2023-02-21 00:09:04 +07:00
Pau Espin e7a5379e29 open5gs: Enable libmetrics prometheus implementation
metrics support using Prometheus has been recently added to open5gs
(28e40a0f1b9048768958344e213c69994be671f5). However, it is still not
enabled by default. Let's enable it and update open5gs config files to
make use of it.

Change-Id: I6ec827d66241e20d631f3a851457921718c168a0
2022-06-08 13:49:43 +02:00
Oliver Smith c6094726ae */Dockerfile: drop MAINTAINER line
MAINTAINER is deprecated, drop the line in all Dockerfiles as suggested
by Vadim.

Related: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
Change-Id: If1ef3032af2075d792c526ae744ec4c0c091da3a
2022-05-13 18:17:06 +02:00
Pau Espin 6e1a4e7df0 ttcn3-ggsn-test-ogs: set CAP_NET_RAW for open5gs-upfd
The SO_BINDTODEVICE feature (used for VRF) requires CAP_NET_RAW. Since
we run open5gs-upfd as user "osmocom", that seems to be causing some
permission problems under some systems (like jenkins). Let's make sure
we add the capabilitites to the binary before launching it as user
"osmocom".

Change-Id: I51ee6954a6c019a41cfcd50b2d99166316989d9b
2022-05-02 11:36:18 +02:00
Vadim Yanitskiy 4403dbb0a5 open5gs-master: ensure consistent install paths with '-latest'
This allows running TTCN-3 test cases against both '-latest' and
'-master' images using the same configuration files.

Change-Id: Ib4dcf3a9f77205dcdd0ff4932763e202cb89001c
Related: SYS#5602
2022-02-07 16:37:21 +06:00
Vadim Yanitskiy e8c1360b92 open5gs-master: install dependencies using apt-get build-dep
This is a 3-rd party project, which may introduce new dependencies
in the future.  Rather than maintaining our own list of packages
to install, let's employ 'apt-get build-dep'.  This tool parses
'debian/control' and installs all dependencies automatically.

Change-Id: I71ad7256116ee30f15aff38fd38588aa2bfab456
Related: SYS#5602
2022-02-07 16:30:20 +06:00
Vadim Yanitskiy c0e6589279 open5gs-master: migrate to debian-bullseye-build
It's a common practice to have a shared '-build' image and base
the '-master' images on top of it to avoid installing same
dependencies across different images.

Finally we can use more recent meson from debian's repositories,
so no need to depend on python and install it using pip.

Change-Id: I93422916b232f686dc27a2ff452e20e73db50f58
Related: SYS#5602
2022-02-04 13:33:40 +00:00
Vadim Yanitskiy 27031af313 open5gs-master: remove both setup.sh and pgw.sh
Having these scripts makes no sense anymore, because:

  * setup.sh was moved to ttcn3-pgw-test,
  * pgw.sh runs non-existing open5gs-pgwd.

Change-Id: I96abc3ac57ade34cd79af6451bb201e36f5cd7f7
Related: SYS#5602
2022-02-03 13:56:25 +06:00
Vadim Yanitskiy 92f0b00cf1 open5gs-master: add missing dependencies
Change-Id: I39806a8cc33a1f975b03839fb16466dabb57a26d
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Vadim Yanitskiy 9539f24193 open5gs-master: there is no 'master' anymore, use 'main'
Change-Id: If02740d8ddb4775cc22e9d4ed78226d09c466626
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Harald Welte 027826fdba introduce 'REGISTRY' argument to all Dockerfiles
This is initialized to docker.io, keeping the default behaviour
if not specified.  However, it allows us to specify a private
registry later on.

Related: OS#4839
Change-Id: I32d4ee6256033c809108c1b86cb6b6c58d880f49
2020-11-02 17:02:26 +01:00
Harald Welte c83c2b1616 open5gs: Add pgw.sh
This can serve as an entrypoint for running open5gs-pgw inside
the open5gs-master container.  It will run setup.sh to create the ogstun
device, followed by running open5gs-pgwd as 'osmocom' user.

Change-Id: I4527b5e328fb248552e69961b80b9f791ec74293
2020-04-27 11:19:36 +00:00
Harald Welte 793e9ff973 add open5gs-master docker container
Change-Id: I089c51caa1b1d8acf0063b7bc7fe61a805b5e800
2020-04-26 23:15:01 +02:00