diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-30 08:40:57 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-30 09:28:34 +0200 |
commit | 9913f3896b788ed6ecfc0acea002fc89a0f452e4 (patch) | |
tree | 20fda2846f99ce0342a78cf2998e2193159a62c2 /osmo-hlr-master | |
parent | 3e3a29865551561a9e9eb4f24e2b89875c74e9e8 (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-hlr-master')
-rw-r--r-- | osmo-hlr-master/Dockerfile | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/osmo-hlr-master/Dockerfile b/osmo-hlr-master/Dockerfile index 3aa8468..d4727cc 100644 --- a/osmo-hlr-master/Dockerfile +++ b/osmo-hlr-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,20 +10,38 @@ 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 \ - libdbd-sqlite3 \ - libosmo-abis-dev \ - libosmo-netif-dev \ - libosmo-sigtran-dev \ - libosmocore-dev \ - telnet && \ - apt-get clean +RUN case "$DISTRO" in \ + debian*) \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + libdbd-sqlite3 \ + libosmo-abis-dev \ + libosmo-netif-dev \ + libosmo-sigtran-dev \ + libosmocore-dev \ + telnet && \ + apt-get clean \ + ;; \ + centos*) \ + dnf install -y \ + "pkgconfig(libosmoabis)" \ + "pkgconfig(libosmocore)" \ + "pkgconfig(libosmoctrl)" \ + "pkgconfig(libosmogsm)" \ + "pkgconfig(libosmovty)" \ + python3 \ + telnet \ + ;; \ + esac WORKDIR /tmp |