Add a new centos8-obs-latest container with shared code (just like debian-stretch-obs-latest) and adjust the package install blocks in osmo-*-latest. Related: OS#5049 Change-Id: I274b31d4903df07e99fd434af25bdb72991f6923changes/37/23237/1
parent
effdb1a452
commit
69b3ecb912
@ -0,0 +1,21 @@ |
||||
ARG REGISTRY=docker.io |
||||
ARG UPSTREAM_DISTRO=centos:centos8 |
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO} |
||||
# Arguments used after FROM must be specified again |
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org" |
||||
|
||||
# Let package metadata expire after 60 seconds instead of 48 hours |
||||
RUN echo "metadata_expire=60" >> /etc/dnf/dnf.conf && cat /etc/dnf/dnf.conf |
||||
|
||||
# Make additional development libraries available from PowerTools and set up |
||||
# Osmocom latest OBS repository |
||||
RUN dnf install -y dnf-utils wget && \ |
||||
yum config-manager --set-enabled powertools && \ |
||||
cd /etc/yum.repos.d/ && \ |
||||
wget $OSMOCOM_REPO_MIRROR/repositories/network:osmocom:latest/CentOS_8/network:osmocom:latest.repo |
||||
|
||||
RUN dnf install -y \ |
||||
telnet |
||||
|
||||
# Invalidate cache once the repository is updated |
||||
ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/CentOS_8/repodata/repomd.xml /tmp/repomd.xml |
@ -0,0 +1,3 @@ |
||||
UPSTREAM_DISTRO:=centos:centos8
|
||||
DISTRO:=centos8
|
||||
include ../make/Makefile |
Loading…
Reference in new issue