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