Change in docker-playground[master]: centos8-obs-latest: use OSMOCOM_REPO_VERSION

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

osmith gerrit-no-reply at lists.osmocom.org
Tue May 4 10:03:33 UTC 2021


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

Change subject: centos8-obs-latest: use OSMOCOM_REPO_VERSION
......................................................................

centos8-obs-latest: use OSMOCOM_REPO_VERSION

Related: SYS#5370
Change-Id: I5eb0d9943ac5c3ffe800774f1a91897fdf0ca0c3
---
M centos8-obs-latest/Dockerfile
1 file changed, 8 insertions(+), 7 deletions(-)

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



diff --git a/centos8-obs-latest/Dockerfile b/centos8-obs-latest/Dockerfile
index 5c2bd7d..4e180de 100644
--- a/centos8-obs-latest/Dockerfile
+++ b/centos8-obs-latest/Dockerfile
@@ -4,23 +4,24 @@
 # Arguments used after FROM must be specified again
 ARG	OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
 ARG	OSMOCOM_REPO_PATH="repositories/network:/osmocom:"
+ARG	OSMOCOM_REPO_VERSION="latest"
 
 # 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
+# Osmocom OBS repository
 RUN	dnf install -y dnf-utils wget && \
 	yum config-manager --set-enabled powertools && \
 	export MIRROR_HTTPS="$(echo $OSMOCOM_REPO_MIRROR | sed s/^http:/https:/)" && \
-	{ echo "[network_osmocom_latest]"; \
-	  echo "name=Latest tagged versions of osmocom cellular network elements (CentOS_8)"; \
+	{ echo "[network_osmocom_${OSMOCOM_REPO_VERSION}]"; \
+	  echo "name=Osmocom ${OSMOCOM_REPO_VERSION}"; \
 	  echo "type=rpm-md"; \
-	  echo "baseurl=${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/latest/CentOS_8/"; \
+	  echo "baseurl=${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/${OSMOCOM_REPO_VERSION}/CentOS_8/"; \
 	  echo "gpgcheck=1"; \
-	  echo "gpgkey=${MIRROR_HTTPS}/${OSMOCOM_REPO_PATH}/latest/CentOS_8/repodata/repomd.xml.key"; \
+	  echo "gpgkey=${MIRROR_HTTPS}/${OSMOCOM_REPO_PATH}/${OSMOCOM_REPO_VERSION}/CentOS_8/repodata/repomd.xml.key"; \
 	  echo "enabled=1"; \
-	} > /etc/yum.repos.d/network:osmocom:latest.repo
+	} > "/etc/yum.repos.d/network:osmocom:${OSMOCOM_REPO_VERSION}.repo"
 
 RUN	dnf install -y \
 		telnet
@@ -29,4 +30,4 @@
 COPY	.common/respawn.sh /usr/local/bin/respawn.sh
 
 # Invalidate cache once the repository is updated
-ADD	${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/latest/CentOS_8/repodata/repomd.xml /tmp/repomd.xml
+ADD	${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/${OSMOCOM_REPO_VERSION}/CentOS_8/repodata/repomd.xml /tmp/repomd.xml

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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I5eb0d9943ac5c3ffe800774f1a91897fdf0ca0c3
Gerrit-Change-Number: 24116
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
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/20210504/6e04ea23/attachment.htm>


More information about the gerrit-log mailing list