Commit Graph

12 Commits

Author SHA1 Message Date
Oliver Smith 59ca7d5f3e {open5gs,osmo-uecups}-latest: don't hardcode UID
Adjust open5gs-latest and osmo-uecups-latest to not hardcode a UID. This
is in preparation for creating a "build" user in
debian-bookworm-obs-latest, like we have it in debian-bookworm-build.

Change-Id: Icaebf46487056cea745805527fdc545d9a1846cd
2024-04-05 14:28:16 +00:00
Pau Espin b0b7ed30f8 open5gs-latest: Support debian bookworm
The open5gs Debian_12 is available since today [1]; hence starting using
debian 12 now.

[1] https://github.com/open5gs/open5gs/issues/2669
Related: SYS#6588
Change-Id: Ib11a55294b525e3c3806246b133f8e479554a068
2023-10-15 21:47:58 +00:00
Vadim Yanitskiy 35c6b4fe02 open5gs-latest: add osmocom user for ttcn3-pgw-test
In ttcn3-pgw-test we're running open5gs-upfd as a non-root user.
We do have this user in open5gs-master, but not in open5gs-latest.

Change-Id: I9139fc52fa6973cf495559d3c4202d9f804a2079
Related: OS#5913
2023-02-21 00:09:31 +07:00
Vadim Yanitskiy d3c437abce open5gs-latest: install missing packages for ttcn3-pgw-test
These are present in open5gs-master, but missing in open5gs-latest.

Change-Id: Ic9227033d65d621e7f6c5e196a9a8d6a1b73d5da
Related: OS#5913
2023-02-20 21:36:42 +07:00
Vadim Yanitskiy 7a41031b5f debian-bullseye-*: apt-key is deprecated, use [signed-by] instead
The following warning message appears when running apt-key:

  apt-key is deprecated. Manage keyring files in trusted.gpg.d instead

The apt-key man page mentions that the "use of apt-key is deprecated,
except for the use of apt-key del in maintainer scripts to remove
existing keys from the main keyring".  What's more, "apt-key will last
be available in Debian 11 and Ubuntu 22.04".

Additionally, while the deprecation message says to "manage keyring
files in trusted.gpg.d instead", the Debian wiki states otherwise.
It's recommended to store the keys in /usr/share/keyrings instead,
and then use the 'signed-by' option to reference them.

ee284d5917

Change-Id: I1cae4f49e72f5e4f9d703cdb8f6d117e18e3567c
2023-02-20 16:39:07 +07:00
Vadim Yanitskiy 9b6cc6ac70 open5gs-latest: migrate from debian:buster to debian:bullseye
Change-Id: Ia09aa712a916686f7220da9a5d2f4a02a8b7b8db
2022-11-15 22:41:23 +07: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
Vadim Yanitskiy 52d594e1a4 open5gs-latest: fix Dockerfile: avoid using curl for downloading keys
Since recently, curl fails to download the key from www.mongodb.org:

'''
$ curl --verbose https://www.mongodb.org/static/pgp/server-4.2.asc
GET /static/pgp/server-4.2.asc HTTP/1.1
Host: www.mongodb.org
User-Agent: curl/7.82.0
Accept: */*

Mark bundle as not supporting multiuse
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Date: Wed, 13 Apr 2022 20:50:19 GMT
Location: https://pgp.mongodb.com/server-4.2.asc
Connection: Keep-Alive
Content-Length: 0
'''

By default, curl would not follow redirects unless '-L' is specified.
Let's use Docker's 'ADD' command instead, like many Dockerfiles do.
Also, update the address as suggested in the server's response.

Change-Id: I9757fcce084595341b1a68822bad454b64941eb1
Related: SYS#5602
2022-04-13 23:55:24 +03:00
Oliver Smith a0a991f412 make/Makefile: always use docker run --rm
Add --rm to the "docker run" line in make/Makefile, and remove it from
RUN_ARGS.

Related: https://osmocom.org/projects/osmocom-servers/wiki/Docker_cache_clean_up
Related: SYS#5827
Change-Id: Iea063aa39a08397ea64d2018b433991a130e7f56
2022-02-14 07:46:23 +00:00
Vadim Yanitskiy 44393058f6 make/Makefile: allow overriding '-it' for target 'run'
Allocating a pseudo-TTY (-t, --tty) fails when 'run' is executed
inside of a Jenkins or cron script.  This change fixes
ttcn3-bts-test, which invokes 'run' to fetch the config files.

Change-Id: If22f682be4f004c5bb43e65098079a4f4fe6158d
Fixes: If15461240f3037c142c176fc7da745a1701ae3f8
2022-02-11 15:21:16 +06:00
Vadim Yanitskiy 487ed0e148 open5gs-latest: fix Dockerfile: remove custom mirror list
I was experiencing problems with Debian's mirrors while working on
this image, so I had to use a custom mirror list.  This is a left-
over that should have been removed before merging.

Change-Id: I313bb604b09293bff8753edeefa7f78cafc9cc22
Related: SYS#5602
2021-12-02 23:33:25 +03:00
Vadim Yanitskiy baade9eef3 open5gs-latest: new Dockerfile for latest open5gs from packages
Change-Id: I06b90b84d22ba8d34bed9f84861ff94bdcabe6c3
Related: SYS#5602
2021-11-23 12:20:05 +03:00