osmo-uecups-latest: new Dockerfile

osmo-uecups is available in the latest feed since recently.

Change-Id: I89c16dd0a71d2461981d978d2abf36f62bb9b339
Related: SYS#5602
This commit is contained in:
Vadim Yanitskiy 2023-02-19 05:37:14 +07:00
parent 7a41031b5f
commit 99f69d2ca8
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,32 @@
ARG USER
ARG DISTRO
ARG OSMOCOM_REPO_VERSION="latest"
FROM $USER/$DISTRO-obs-$OSMOCOM_REPO_VERSION
# 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 \
osmo-uecups && \
apt-get clean \
;; \
centos*) \
dnf install -y \
osmo-uecups \
;; \
esac
WORKDIR /tmp
VOLUME /data
COPY osmo-uecups-daemon.cfg /data/osmo-uecups-daemon.cfg
RUN useradd -m --uid=1000 osmocom
WORKDIR /data
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-uecups-daemon -c /data/osmo-uecups-daemon.cfg >/data/osmo-uecups-daemon.log 2>&1"]
#EXPOSE

View File

@ -0,0 +1 @@
include ../make/Makefile

View File

@ -0,0 +1,15 @@
log stderr
logging filter all 1
logging print extended-timestamp 1
logging print file basename last
logging print category-hex 0
logging print category 1
logging print level 1
logging timestamp 1
logging color 0
!
logging level set-all info
line vty
bind 0.0.0.0
uecups
local-ip 0.0.0.0