osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/37467?usp=email )
Change subject: centos7: use vault.centos.org
......................................................................
centos7: use vault.centos.org
The centos7 images try to use mirrorlist.centos.org to determine the
fastest mirror, and then download binary packages from there. But
mirrorlist.centos.org isn't online anymore. Use the vault instead.
Without this patch, the mirrors that can't be reached are ignored, and
later on it fails to properly install packages because of missing
dependencies.
Related: https://serverfault.com/a/1161847
Change-Id: I0a8f93bb16dd9245760b8a1ad53f0642d446b4cf
---
M centos7-build/Dockerfile
M centos7-obs-latest/Dockerfile
2 files changed, 32 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/67/37467/1
diff --git a/centos7-build/Dockerfile b/centos7-build/Dockerfile
index f449d42..d4b152c 100644
--- a/centos7-build/Dockerfile
+++ b/centos7-build/Dockerfile
@@ -5,6 +5,13 @@
ARG OSMOCOM_REPO_MIRROR="https://downloads.osmocom.org"
ARG OSMOCOM_REPO_PATH="packages/osmocom:"
+# Use vault.centos.org instead of mirrorlist.centos.org, which doesn't exist
+# anymore (see https://serverfault.com/a/1161847).
+RUN set -x && \
+ sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/*.repo && \
+ sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo && \
+ sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo
+
# Use dnf package manager instead of yum, so we can use all the dnf codepaths
# that were originally written for CentOS8 in this CentOS7 image too
RUN yum install -y dnf
diff --git a/centos7-obs-latest/Dockerfile b/centos7-obs-latest/Dockerfile
index 2c06882..7da0db3 100644
--- a/centos7-obs-latest/Dockerfile
+++ b/centos7-obs-latest/Dockerfile
@@ -6,6 +6,13 @@
ARG OSMOCOM_REPO_PATH="packages/osmocom:"
ARG OSMOCOM_REPO_VERSION="latest"
+# Use vault.centos.org instead of mirrorlist.centos.org, which doesn't exist
+# anymore (see https://serverfault.com/a/1161847).
+RUN set -x && \
+ sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/*.repo && \
+ sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo && \
+ sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo
+
# Use dnf package manager instead of yum, so we can use all the dnf codepaths
# that were originally written for CentOS8 in this CentOS7 image too
RUN yum install -y dnf
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/37467?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I0a8f93bb16dd9245760b8a1ad53f0642d446b4cf
Gerrit-Change-Number: 37467
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: jolly, osmith, pespin.
Hello Jenkins Builder, jolly, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/37466?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+1 by osmith, Verified+1 by Jenkins Builder
Change subject: asterisk: Wait for dnsmasq resolver ready before starting Asterisk
......................................................................
asterisk: Wait for dnsmasq resolver ready before starting Asterisk
Otherwise Asterisk wil lfaill to add the identify match at startup:
[2024-07-11 10:35:02.199] ERROR[14]: netsock2.c:303 ast_sockaddr_resolve: getaddrinfo("ims.mnc001.mcc238.3gppnetwork.org", "(null)", ...): Temporary failure in name resolution
[2024-07-11 10:35:02.199] ERROR[14]: res_pjsip_endpoint_identifier_ip.c:553 ip_identify_apply: Identify 'volte_ims' failed when adding resolution results of 'ims.mnc001.mcc238.3gppnetwork.org'
[2024-07-11 10:35:02.199] ERROR[14]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type 'identify' with id 'volte_ims' from configuration file 'pjsip.conf'
Related: SYS#7010
Change-Id: I01475c1ed2aa20fb9b8b8722a7b965ea9b63e8a9
---
M ttcn3-asterisk-ims-ue-test/asterisk/asterisk.sh
1 file changed, 25 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/66/37466/2
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/37466?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I01475c1ed2aa20fb9b8b8722a7b965ea9b63e8a9
Gerrit-Change-Number: 37466
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset