Profiles and data used to compile packages for EOLE distribution
This commit is contained in:
25
hooks/containerbuild/eole-2.10.0/configure-additional-repository
Executable file
25
hooks/containerbuild/eole-2.10.0/configure-additional-repository
Executable 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.10.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.10.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
|
Reference in New Issue
Block a user