26 lines
775 B
Bash
Executable File
26 lines
775 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.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
|