open5gs-latest: new Dockerfile for latest open5gs from packages

Change-Id: I06b90b84d22ba8d34bed9f84861ff94bdcabe6c3
Related: SYS#5602
This commit is contained in:
Vadim Yanitskiy 2021-11-23 12:19:12 +03:00
parent 1e8e606d16
commit baade9eef3
2 changed files with 30 additions and 0 deletions

25
open5gs-latest/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
ARG REGISTRY=docker.io
FROM ${REGISTRY}/debian:buster
MAINTAINER Vadim Yanitskiy <vyanitskiy@sysmocom.de>
# TODO: remove me!
ADD sources.list /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg \
curl
RUN curl https://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/Debian_10/Release.key | apt-key add -
RUN curl https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -
RUN echo "deb http://download.opensuse.org/repositories/home:/acetcom:/open5gs:/latest/Debian_10/ ./" \
> /etc/apt/sources.list.d/open5gs.list
RUN echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" \
> /etc/apt/sources.list.d/mongodb-org.list
RUN apt-get update && \
apt-get install -y \
mongodb-org \
open5gs

5
open5gs-latest/Makefile Normal file
View File

@ -0,0 +1,5 @@
DATA_DIR?=$(shell pwd)
USER_ID?=$(shell id -u)
RUN_ARGS=-v $(DATA_DIR):/data --user $(USER_ID) --network host --rm
include ../make/Makefile