aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-12-15 17:17:18 +0100
committerOliver Smith <osmith@sysmocom.de>2021-12-15 17:17:18 +0100
commit1fe2668f46c0713006b49947d5ce23f1209c9abd (patch)
tree0a5675e8ab5679de1c72dd12aeb821db6b22ce45
parentd748508f3c35ddf7212807b9be26d7527cbfae20 (diff)
osmo-remsim-latest: add logic for centos pkgs
-rw-r--r--osmo-remsim-latest/Dockerfile23
1 files changed, 17 insertions, 6 deletions
diff --git a/osmo-remsim-latest/Dockerfile b/osmo-remsim-latest/Dockerfile
index ed81e3d..c684cb8 100644
--- a/osmo-remsim-latest/Dockerfile
+++ b/osmo-remsim-latest/Dockerfile
@@ -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