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