Change in docker-playground[master]: osmo-remsim-latest: add logic for centos pkgs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 15 17:18:10 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/26577 )

Change subject: osmo-remsim-latest: add logic for centos pkgs
......................................................................

osmo-remsim-latest: add logic for centos pkgs

Change-Id: If888f69fdcd349c71da06a0f0cf2b6b2f6319fb8
---
M osmo-remsim-latest/Dockerfile
1 file changed, 17 insertions(+), 6 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved; Verified



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	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
 

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/26577
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: If888f69fdcd349c71da06a0f0cf2b6b2f6319fb8
Gerrit-Change-Number: 26577
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211215/b8cd54ce/attachment.htm>


More information about the gerrit-log mailing list