osmo-remsim-latest: add logic for centos pkgs

Change-Id: If888f69fdcd349c71da06a0f0cf2b6b2f6319fb8
This commit is contained in:
Oliver Smith 2021-12-15 17:17:18 +01:00
parent d748508f3c
commit 1fe2668f46
1 changed files with 17 additions and 6 deletions

View File

@ -3,13 +3,24 @@ 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 apt-get update && \
apt-get install -y --no-install-recommends \
osmo-remsim-server \
osmo-remsim-client-st2 \
osmo-remsim-bankd && \
apt-get clean
RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
osmo-remsim-server \
osmo-remsim-client-st2 \
osmo-remsim-bankd && \
apt-get clean \
;; \
centos*) \
dnf install -y \
osmo-remsim-server \
osmo-remsim-client-st2 \
osmo-remsim-bankd \
;; \
esac
#ADD respawn.sh /usr/local/bin/respawn.sh