Files
Tamarin/hooks/containerbuild/eole-2.8.0/configure-additional-repository

28 lines
905 B
Bash
Executable File

#!/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