]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
CI: Adjust the usage of inline files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Jul 2024 13:08:29 +0000 (14:08 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Jul 2024 18:07:35 +0000 (19:07 +0100)
As per:

  https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md#here-documents

For inline files, use COPY with a heredoc, rather than opencoding it through
/bin/sh.

No practical change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
automation/build/debian/jessie-i386.dockerfile
automation/build/debian/jessie.dockerfile
automation/build/debian/stretch-i386.dockerfile
automation/build/debian/stretch.dockerfile

index f6eaa94ee5232016a078a695caf94e1a53cf3dd6..1eb7ff11c7d3d455a2044164b9b65336eb767edf 100644 (file)
@@ -12,7 +12,7 @@ WORKDIR /build
 ENTRYPOINT ["linux32"]
 
 # replace repos in archive as release is EOL
-RUN cat <<"END" > /etc/apt/sources.list
+COPY <<"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
index a870e743fcaf1dd2bd4703ebdf34022577419a2a..4c0ffe66f8fe925add696c7e9b293e7c88f8df02 100644 (file)
@@ -10,7 +10,7 @@ RUN mkdir /build
 WORKDIR /build
 
 # replace repos in archive as release is EOL
-RUN cat <<"END" > /etc/apt/sources.list
+COPY <<"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
index ad8db692aaf2bbac93571a13d79bc01498352fd1..8ec9c3a246674f36bf06dfd4912e87fd9ca906b0 100644 (file)
@@ -12,7 +12,7 @@ WORKDIR /build
 ENTRYPOINT ["linux32"]
 
 # replace repos in archive as release is EOL
-RUN cat <<"END" > /etc/apt/sources.list
+COPY <<"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
index 4dfd40b54277350847f01b89a1ec97d792163a67..2db4552662de0ad70578af3fe97939a3088f6607 100644 (file)
@@ -10,7 +10,7 @@ RUN mkdir /build
 WORKDIR /build
 
 # replace repos in archive as release is EOL
-RUN cat <<"END" > /etc/apt/sources.list
+COPY <<"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