Install ca-certificates before Osmocom repo

Prepare for using https://downloads.osmocom.org/packages/ instead of
http://download.opensuse.org to download packages. Install
ca-certificates before attempting to use the repository, otherwise it
will print a warning and not use the repository and e.g. install
eclipse-titan from debian's repository instead of our repo.

Fix for:
W: https://downloads.osmocom.org/packages/osmocom:/latest/Debian_11/./InRelease: No system certificates available. Try installing ca-certificates.

Related: OS#5557
Change-Id: Icb6764601671b6e66591f33ede6d0f822811545a
This commit is contained in:
Oliver Smith 2022-06-27 16:28:11 +02:00
parent 010d9f30ae
commit f3c09b2a24
16 changed files with 18 additions and 0 deletions

View File

@ -15,6 +15,7 @@ RUN apt-get update && \
automake \
bison \
build-essential \
ca-certificates \
cppcheck \
dahdi-source \
debhelper \

View File

@ -44,6 +44,7 @@ RUN apt-get update && \
# add osmocom latest repo, should we ever require packages from there
RUN apt-get update && apt-get install -y \
ca-certificates \
gnupg
COPY .common/Release.key /tmp/Release.key
RUN apt-key add /tmp/Release.key && \

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
telnet \
ca-certificates \
gnupg \
&& \
apt-get clean

View File

@ -8,6 +8,7 @@ ARG OSMOCOM_REPO_TESTSUITE_MIRROR="http://download.opensuse.org"
ARG OSMOCOM_REPO="$OSMOCOM_REPO_TESTSUITE_MIRROR/repositories/network:/osmocom:/latest/Debian_11/"
RUN apt-get update && apt-get install -y \
ca-certificates \
gnupg
COPY .common/Release.key /tmp/Release.key

View File

@ -15,6 +15,7 @@ RUN apt-get update && \
automake \
bison \
build-essential \
ca-certificates \
cppcheck \
dahdi-source \
debhelper \

View File

@ -26,6 +26,7 @@ RUN \
bc \
bison \
bzip2 \
ca-certificates \
cmake \
coccinelle \
cppcheck \

View File

@ -9,6 +9,9 @@ ARG OSMOCOM_REPO="${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/nightly/Debian_8.0
COPY .common/Release.key /tmp/Release.key
RUN apt-get update && apt-get install -y \
ca-certificates
RUN apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list

View File

@ -26,6 +26,7 @@ RUN \
bc \
bison \
bzip2 \
ca-certificates \
cmake \
coccinelle \
cppcheck \

View File

@ -15,6 +15,7 @@ RUN apt-get update && \
automake \
bison \
build-essential \
ca-certificates \
cppcheck \
dahdi-source \
debhelper \

View File

@ -26,6 +26,7 @@ RUN \
bc \
bison \
bzip2 \
ca-certificates \
cmake \
coccinelle \
cppcheck \

View File

@ -9,6 +9,7 @@ ARG OSMOCOM_REPO="${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/latest/Debian_9.0/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
telnet \
gnupg \
&& \

View File

@ -16,6 +16,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg && \
apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \

View File

@ -16,6 +16,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg && \
apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \

View File

@ -16,6 +16,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg && \
apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \

View File

@ -16,6 +16,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg && \
apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \

View File

@ -16,6 +16,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
gnupg && \
apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \