From d87e587a45bd15e7c230bb1122c65aa836630052 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Mon, 26 Jun 2023 15:19:51 +0200 Subject: [PATCH] =?UTF-8?q?Acc=C3=A8s=20aux=20d=C3=A9p=C3=B4ts=20EOLE=20n?= =?UTF-8?q?=C3=A9cessaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configure-additional-repository | 22 +++++++++++++++ .../configure-additional-repository | 21 +++++++++++++++ .../configure-additional-repository | 21 +++++++++++++++ .../configure-additional-repository | 26 ++++++++++++++++++ .../configure-additional-repository | 27 +++++++++++++++++++ .../configure-additional-repository | 25 +++++++++++++++++ .../configure-additional-repository | 25 +++++++++++++++++ 7 files changed, 167 insertions(+) create mode 100755 hooks/containerbuild/eole-2.6.2/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.7.0/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.7.1/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.7.2/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.8.0/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.8.1/configure-additional-repository create mode 100755 hooks/containerbuild/eole-2.9.0/configure-additional-repository diff --git a/hooks/containerbuild/eole-2.6.2/configure-additional-repository b/hooks/containerbuild/eole-2.6.2/configure-additional-repository new file mode 100755 index 0000000..1924bfb --- /dev/null +++ b/hooks/containerbuild/eole-2.6.2/configure-additional-repository @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +for gpgkey in $(ls datasets/eole-2.6.2/*.gpg); +do + echo "COPY ${gpgkey} /root/$(basename ${gpgkey})" >> Dockerfile + echo "RUN apt-key add /root/$(basename ${gpgkey})" >> Dockerfile +done +echo 'COPY datasets/eole-2.6.2/eole-2.6.2.list /etc/apt/sources.list.d/eole.list' >> Dockerfile +if [ -e './datasets/aptly/aptly.list' ] +then +echo 'COPY datasets/aptly/aptly.list /etc/apt/sources.list.d/aptly.list' >> Dockerfile +echo 'COPY datasets/aptly/aptly.key /root/aptly.key' >> Dockerfile +echo 'RUN apt-key add /root/aptly.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.7.0/configure-additional-repository b/hooks/containerbuild/eole-2.7.0/configure-additional-repository new file mode 100755 index 0000000..19a2314 --- /dev/null +++ b/hooks/containerbuild/eole-2.7.0/configure-additional-repository @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +echo 'COPY datasets/eole-2.7.0/eole-2.7.0.list /etc/apt/sources.list.d/eole.list' >> Dockerfile +echo 'COPY datasets/eole-2.7.0/eole-archive-eole-2.7-bionic-beaver.gpg /root/eole-2.7-repository.key' >> Dockerfile +echo 'COPY datasets/eole-2.7.0/eole-archive-eole-samba-4.9.gpg /root/eole-samba-4.9.key' >> Dockerfile +echo 'RUN apt-key add /root/eole-2.7-repository.key' >> Dockerfile +echo 'RUN apt-key add /root/eole-samba-4.9.key' >> Dockerfile +if [ -e './datasets/aptly/aptly.list' ] +then +echo 'COPY datasets/aptly/aptly.list /etc/apt/sources.list.d/aptly.list' >> Dockerfile +echo 'COPY datasets/aptly/aptly.key /root/aptly.key' >> Dockerfile +echo 'RUN apt-key add /root/aptly.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.7.1/configure-additional-repository b/hooks/containerbuild/eole-2.7.1/configure-additional-repository new file mode 100755 index 0000000..67e5740 --- /dev/null +++ b/hooks/containerbuild/eole-2.7.1/configure-additional-repository @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +echo 'COPY datasets/eole-2.7.1/eole-2.7.1.list /etc/apt/sources.list.d/eole.list' >> Dockerfile +echo 'COPY datasets/eole-2.7.1/eole-archive-eole-2.7-bionic-beaver.gpg /root/eole-2.7-repository.key' >> Dockerfile +echo 'COPY datasets/eole-2.7.0/eole-archive-eole-samba-4.9.gpg /root/eole-samba-4.9.key' >> Dockerfile +echo 'RUN apt-key add /root/eole-2.7-repository.key' >> Dockerfile +echo 'RUN apt-key add /root/eole-samba-4.9.key' >> Dockerfile +if [ -e './datasets/aptly/aptly.list' ] +then +echo 'COPY datasets/aptly/aptly.list /etc/apt/sources.list.d/aptly.list' >> Dockerfile +echo 'COPY datasets/aptly/aptly.key /root/aptly.key' >> Dockerfile +echo 'RUN apt-key add /root/aptly.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.7.2/configure-additional-repository b/hooks/containerbuild/eole-2.7.2/configure-additional-repository new file mode 100755 index 0000000..cf8d3c5 --- /dev/null +++ b/hooks/containerbuild/eole-2.7.2/configure-additional-repository @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +for gpg_key in $(find . -wholename "*/eole-2.7.2/*.gpg") +do + dest="$(basename $gpg_key)" + echo "COPY $gpg_key /etc/apt/trusted.gpg.d/$dest" >> Dockerfile +done +for source_list in $(find . -wholename "*/eole-2.7.2/*.list") +do + dest="$(basename $source_list)" + echo "COPY $source_list /etc/apt/sources.list.d/$dest" >> Dockerfile +done +if [ -e './datasets/pulp/pulp.list' ] +then +echo 'COPY datasets/pulp/pulp.list /etc/apt/sources.list.d/pulp.list' >> Dockerfile +echo 'COPY datasets/pulp/pulp.key /root/pulp.key' >> Dockerfile +echo 'RUN apt-key add /root/pulp.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.8.0/configure-additional-repository b/hooks/containerbuild/eole-2.8.0/configure-additional-repository new file mode 100755 index 0000000..4bb994e --- /dev/null +++ b/hooks/containerbuild/eole-2.8.0/configure-additional-repository @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +for gpg_key in $(find . -wholename "*/eole-2.8.0/*.gpg") +do + dest="$(basename $gpg_key)" + echo "COPY $gpg_key /root/$dest" >> Dockerfile + echo "RUN apt-key add /root/$dest" >> Dockerfile +done +for source_list in $(find . -wholename "./eole-2.8.0/*.list") +do + dest="$(basename $source_list)" + echo "COPY $source_list /etc/apt/sources.list.d/$dest" >> Dockerfile +done +if [ -e './datasets/aptly/aptly.list' ] +then +echo 'COPY datasets/aptly/aptly.list /etc/apt/sources.list.d/aptly.list' >> Dockerfile +echo 'COPY datasets/aptly/aptly.key /root/aptly.key' >> Dockerfile +echo 'RUN apt-key add /root/aptly.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.8.1/configure-additional-repository b/hooks/containerbuild/eole-2.8.1/configure-additional-repository new file mode 100755 index 0000000..8b34d14 --- /dev/null +++ b/hooks/containerbuild/eole-2.8.1/configure-additional-repository @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +for gpg_key in $(find . -wholename "*/eole-2.8.1/*.gpg") +do + dest="$(basename $gpg_key)" + echo "COPY $gpg_key /etc/apt/trusted.gpg.d/$dest" >> Dockerfile +done +for source_list in $(find . -wholename "*/eole-2.8.1/*.list") +do + dest="$(basename $source_list)" + echo "COPY $source_list /etc/apt/sources.list.d/$dest" >> Dockerfile +done +if [ -e './datasets/pulp/pulp.key' ] +then +echo 'COPY datasets/pulp/pulp.key /root/pulp.key' >> Dockerfile +echo 'RUN apt-key add /root/pulp.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0 diff --git a/hooks/containerbuild/eole-2.9.0/configure-additional-repository b/hooks/containerbuild/eole-2.9.0/configure-additional-repository new file mode 100755 index 0000000..cc13753 --- /dev/null +++ b/hooks/containerbuild/eole-2.9.0/configure-additional-repository @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +set -e + + +echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile +echo 'RUN apt-get update && apt-get install --yes --no-install-recommends gnupg' >> Dockerfile +for gpg_key in $(find . -wholename "*/eole-2.9.0/*.gpg") +do + dest="$(basename $gpg_key)" + echo "COPY $gpg_key /etc/apt/trusted.gpg.d/$dest" >> Dockerfile +done +for source_list in $(find . -wholename "*/eole-2.9.0/*.list") +do + dest="$(basename $source_list)" + echo "COPY $source_list /etc/apt/sources.list.d/$dest" >> Dockerfile +done +if [ -e './datasets/pulp/pulp.key' ] +then +echo 'COPY datasets/pulp/pulp.key /root/pulp.key' >> Dockerfile +echo 'RUN apt-key add /root/pulp.key' >> Dockerfile +fi +echo 'RUN apt-get update' >> Dockerfile +echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile +exit 0