Accès aux dépôts EOLE nécessaire

This commit is contained in:
2023-06-26 15:19:51 +02:00
parent 9e9fdee0d6
commit d87e587a45
7 changed files with 167 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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