23 lines
807 B
Bash
Executable File
23 lines
807 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 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
|