aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-mgw-master
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-30 08:40:57 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-30 09:28:34 +0200
commit9913f3896b788ed6ecfc0acea002fc89a0f452e4 (patch)
tree20fda2846f99ce0342a78cf2998e2193159a62c2 /osmo-mgw-master
parent3e3a29865551561a9e9eb4f24e2b89875c74e9e8 (diff)
osmo-*-master: support centos8
Adjust the Dockerfiles, so 'docker_images_require osmo-mgw-master-centos8' etc. result in a centos8 based image. centos8-build already configures the Osmocom nightly repository, so we only need to configure it for debian-stretch. Related: OS#4564 Change-Id: I6579748056ce0505304378b342a698b98c77fd18
Diffstat (limited to 'osmo-mgw-master')
-rw-r--r--osmo-mgw-master/Dockerfile45
1 files changed, 33 insertions, 12 deletions
diff --git a/osmo-mgw-master/Dockerfile b/osmo-mgw-master/Dockerfile
index f898c7e..773c2a5 100644
--- a/osmo-mgw-master/Dockerfile
+++ b/osmo-mgw-master/Dockerfile
@@ -1,5 +1,8 @@
ARG USER
-FROM $USER/debian-stretch-build
+ARG DISTRO
+FROM $USER/$DISTRO-build
+# Arguments used after FROM must be specified again
+ARG DISTRO
MAINTAINER Harald Welte <laforge@gnumonks.org>
@@ -7,19 +10,37 @@ ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/ni
COPY Release.key /tmp/Release.key
-RUN apt-key add /tmp/Release.key && \
- rm /tmp/Release.key && \
- echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list
+RUN case "$DISTRO" in \
+ debian*) \
+ apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list \
+ ;; \
+ esac
ADD $OSMOCOM_REPO/Release /tmp/Release
-RUN apt-get update && \
- apt-get install -y --no-install-recommends \
- telnet \
- libosmocore-dev \
- libosmo-abis-dev \
- libosmo-netif-dev \
- libosmo-sccp-dev && \
- apt-get clean
+RUN case "$DISTRO" in \
+ debian*) \
+ apt-get update && \
+ apt-get install -y --no-install-recommends \
+ telnet \
+ libosmocore-dev \
+ libosmo-abis-dev \
+ libosmo-netif-dev \
+ libosmo-sccp-dev && \
+ apt-get clean \
+ ;; \
+ centos*) \
+ dnf install -y \
+ telnet \
+ "pkgconfig(libosmo-netif)" \
+ "pkgconfig(libosmocore)" \
+ "pkgconfig(libosmoctrl)" \
+ "pkgconfig(libosmogsm)" \
+ "pkgconfig(libosmovty)" \
+ "pkgconfig(libosmocoding)" \
+ ;; \
+ esac
WORKDIR /tmp