diff mbox series

[3/6] automation: fix jessie/stretch images to use archive.debian.org apt repos

Message ID 20231116121310.72210-4-roger.pau@citrix.com (mailing list archive)
State Superseded
Headers show
Series automation: minor fixes and improvements | expand

Commit Message

Roger Pau Monne Nov. 16, 2023, 12:13 p.m. UTC
Otherwise it's impossible to build the images.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
 automation/build/debian/jessie-i386.dockerfile  | 7 +++++++
 automation/build/debian/jessie.dockerfile       | 7 +++++++
 automation/build/debian/stretch-i386.dockerfile | 7 +++++++
 automation/build/debian/stretch.dockerfile      | 7 +++++++
 4 files changed, 28 insertions(+)

Comments

Stefano Stabellini Nov. 17, 2023, 1:15 a.m. UTC | #1
On Thu, 16 Nov 2023, Roger Pau Monne wrote:
> Otherwise it's impossible to build the images.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>  automation/build/debian/jessie-i386.dockerfile  | 7 +++++++
>  automation/build/debian/jessie.dockerfile       | 7 +++++++
>  automation/build/debian/stretch-i386.dockerfile | 7 +++++++
>  automation/build/debian/stretch.dockerfile      | 7 +++++++
>  4 files changed, 28 insertions(+)
> 
> diff --git a/automation/build/debian/jessie-i386.dockerfile b/automation/build/debian/jessie-i386.dockerfile
> index c9ac15a3ffd6..a8dec82bb299 100644
> --- a/automation/build/debian/jessie-i386.dockerfile
> +++ b/automation/build/debian/jessie-i386.dockerfile
> @@ -10,6 +10,13 @@ WORKDIR /build
>  
>  ENTRYPOINT ["linux32"]
>  
> +# replace repos in archive as release is EOL
> +RUN cat <<"END" > /etc/apt/sources.list
> +deb http://archive.debian.org/debian/ jessie main contrib non-free
> +deb http://archive.debian.org/debian/ jessie-backports main contrib non-free
> +deb http://archive.debian.org/debian-security/ jessie/updates main contrib non-free
> +END
> +
>  # build depends
>  RUN apt-get update && \
>      apt-get --quiet --yes install \
> diff --git a/automation/build/debian/jessie.dockerfile b/automation/build/debian/jessie.dockerfile
> index 63b2c1e5b771..5c71c3e3ea75 100644
> --- a/automation/build/debian/jessie.dockerfile
> +++ b/automation/build/debian/jessie.dockerfile
> @@ -8,6 +8,13 @@ ENV USER root
>  RUN mkdir /build
>  WORKDIR /build
>  
> +# replace repos in archive as release is EOL
> +RUN cat <<"END" > /etc/apt/sources.list
> +deb http://archive.debian.org/debian/ jessie main contrib non-free
> +deb http://archive.debian.org/debian/ jessie-backports main contrib non-free
> +deb http://archive.debian.org/debian-security/ jessie/updates main contrib non-free
> +END
> +
>  # build depends
>  RUN apt-get update && \
>      apt-get --quiet --yes install \
> diff --git a/automation/build/debian/stretch-i386.dockerfile b/automation/build/debian/stretch-i386.dockerfile
> index d93f74c979ef..9739651e25dd 100644
> --- a/automation/build/debian/stretch-i386.dockerfile
> +++ b/automation/build/debian/stretch-i386.dockerfile
> @@ -10,6 +10,13 @@ WORKDIR /build
>  
>  ENTRYPOINT ["linux32"]
>  
> +# replace repos in archive as release is EOL
> +RUN cat <<"END" > /etc/apt/sources.list
> +deb http://archive.debian.org/debian/ stretch main contrib non-free
> +deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
> +deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
> +END
> +
>  # build depends
>  RUN apt-get update && \
>      apt-get --quiet --yes install \
> diff --git a/automation/build/debian/stretch.dockerfile b/automation/build/debian/stretch.dockerfile
> index 1af6c691f8f4..2f1a99f45017 100644
> --- a/automation/build/debian/stretch.dockerfile
> +++ b/automation/build/debian/stretch.dockerfile
> @@ -8,6 +8,13 @@ ENV USER root
>  RUN mkdir /build
>  WORKDIR /build
>  
> +# replace repos in archive as release is EOL
> +RUN cat <<"END" > /etc/apt/sources.list
> +deb http://archive.debian.org/debian/ stretch main contrib non-free
> +deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
> +deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
> +END
> +
>  # build depends
>  RUN apt-get update && \
>      apt-get --quiet --yes install \
> -- 
> 2.42.0
>
diff mbox series

Patch

diff --git a/automation/build/debian/jessie-i386.dockerfile b/automation/build/debian/jessie-i386.dockerfile
index c9ac15a3ffd6..a8dec82bb299 100644
--- a/automation/build/debian/jessie-i386.dockerfile
+++ b/automation/build/debian/jessie-i386.dockerfile
@@ -10,6 +10,13 @@  WORKDIR /build
 
 ENTRYPOINT ["linux32"]
 
+# replace repos in archive as release is EOL
+RUN cat <<"END" > /etc/apt/sources.list
+deb http://archive.debian.org/debian/ jessie main contrib non-free
+deb http://archive.debian.org/debian/ jessie-backports main contrib non-free
+deb http://archive.debian.org/debian-security/ jessie/updates main contrib non-free
+END
+
 # build depends
 RUN apt-get update && \
     apt-get --quiet --yes install \
diff --git a/automation/build/debian/jessie.dockerfile b/automation/build/debian/jessie.dockerfile
index 63b2c1e5b771..5c71c3e3ea75 100644
--- a/automation/build/debian/jessie.dockerfile
+++ b/automation/build/debian/jessie.dockerfile
@@ -8,6 +8,13 @@  ENV USER root
 RUN mkdir /build
 WORKDIR /build
 
+# replace repos in archive as release is EOL
+RUN cat <<"END" > /etc/apt/sources.list
+deb http://archive.debian.org/debian/ jessie main contrib non-free
+deb http://archive.debian.org/debian/ jessie-backports main contrib non-free
+deb http://archive.debian.org/debian-security/ jessie/updates main contrib non-free
+END
+
 # build depends
 RUN apt-get update && \
     apt-get --quiet --yes install \
diff --git a/automation/build/debian/stretch-i386.dockerfile b/automation/build/debian/stretch-i386.dockerfile
index d93f74c979ef..9739651e25dd 100644
--- a/automation/build/debian/stretch-i386.dockerfile
+++ b/automation/build/debian/stretch-i386.dockerfile
@@ -10,6 +10,13 @@  WORKDIR /build
 
 ENTRYPOINT ["linux32"]
 
+# replace repos in archive as release is EOL
+RUN cat <<"END" > /etc/apt/sources.list
+deb http://archive.debian.org/debian/ stretch main contrib non-free
+deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
+deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
+END
+
 # build depends
 RUN apt-get update && \
     apt-get --quiet --yes install \
diff --git a/automation/build/debian/stretch.dockerfile b/automation/build/debian/stretch.dockerfile
index 1af6c691f8f4..2f1a99f45017 100644
--- a/automation/build/debian/stretch.dockerfile
+++ b/automation/build/debian/stretch.dockerfile
@@ -8,6 +8,13 @@  ENV USER root
 RUN mkdir /build
 WORKDIR /build
 
+# replace repos in archive as release is EOL
+RUN cat <<"END" > /etc/apt/sources.list
+deb http://archive.debian.org/debian/ stretch main contrib non-free
+deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
+deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
+END
+
 # build depends
 RUN apt-get update && \
     apt-get --quiet --yes install \