add osmo-upf-master

Will be used by ttcn3-upf-test in subsequent patch
I7a651bb85861de4b2677a731b9f17fa0d790c621.

Change-Id: Iceec912eef05bf4903ccc1fc30b0c7362145a1f1
changes/44/29444/1
Neels Hofmeyr 2 months ago
parent c6ece0d7d4
commit 4ee669ee3a
  1. 50
      osmo-upf-master/Dockerfile
  2. 3
      osmo-upf-master/Makefile
  3. 8
      osmo-upf-master/osmo-upf.cfg

@ -0,0 +1,50 @@
ARG USER
ARG DISTRO
FROM $USER/$DISTRO-build
# Arguments used after FROM must be specified again
ARG DISTRO
RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
libosmocore-dev \
libgtpnl-dev \
libnftables-dev \
libosmo-pfcp-dev \
&& apt-get clean \
;; \
centos*) \
dnf install -y \
"pkgconfig(libgtpnl)" \
"pkgconfig(libnftables)" \
"pkgconfig(libosmocore)" \
"pkgconfig(libosmoctrl)" \
"pkgconfig(libosmovty)" \
"pkgconfig(libosmo-pfcp)" \
;; \
esac
WORKDIR /tmp
ARG OSMO_UPF_BRANCH="master"
RUN git clone git://git.osmocom.org/osmo-upf.git
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-upf/+/refs/heads/$OSMO_UPF_BRANCH /tmp/commit-osmo-upf
RUN cd osmo-upf && \
git fetch && git checkout $OSMO_UPF_BRANCH && \
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_UPF_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make "-j$(nproc)" install
VOLUME /data
COPY osmo-upf.cfg /data/osmo-upf.cfg
WORKDIR /data
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-upf -c /data/osmo-upf.cfg >/data/osmo-upf.log 2>&1"]
#EXPOSE

@ -0,0 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.23 -v upf-vol:/data
include ../make/Makefile

@ -0,0 +1,8 @@
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging level set-all notice
gtp
dev create apn23
Loading…
Cancel
Save