Tamarin/hooks/containerbuild/debian/configure-eole-env

41 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-07-10 16:45:51 +02:00
#!/usr/bin/env bash
# Copie de la clé publique GPG pour la signature des paquets
wget -O- http://marang.eole.lan/pubkey.asc > pubkey.asc
cat <<EOF > eole.list
# Ubuntu
deb http://eole.ac-dijon.fr/ubuntu xenial main universe multiverse restricted
deb http://eole.ac-dijon.fr/ubuntu xenial-security main universe multiverse restricted
deb http://eole.ac-dijon.fr/ubuntu xenial-updates main universe multiverse restricted
# EOLE
deb http://test-eole.ac-dijon.fr/eole eole-2.6.1 main cloud
deb http://test-eole.ac-dijon.fr/eole eole-2.6.1-security main cloud
deb http://test-eole.ac-dijon.fr/eole eole-2.6.1-updates main cloud
deb http://test-eole.ac-dijon.fr/eole eole-2.6.1-proposed-updates main cloud
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
EOF
cat <<EOF > eole-dev.pref
Package: *
Pin: origin 192.168.230.125
Pin-Priority: 1001
EOF
# TODO Ajouter les clés des dépots EOLE
echo "RUN echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/99bypass" >> Dockerfile
echo "RUN apt-get update && apt-get install -y apt-transport-https" >> Dockerfile
echo "COPY eole.list /etc/apt/sources.list.d/eole.list" >> Dockerfile
echo "RUN apt-get update && apt-get install -y curl" >> Dockerfile
echo "RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -" >> Dockerfile
echo "RUN apt-get install -y nodejs" >> Dockerfile
# Ajout dépôt de dev
echo "COPY pubkey.asc /root/pubkey.asc" >> Dockerfile
echo "RUN cat /root/pubkey.asc | apt-key add -" >> Dockerfile
echo "RUN echo 'deb http://192.168.230.125:8080 eole main' > /etc/apt/sources.list.d/eole-dev.list" >> Dockerfile
echo "COPY eole-dev.pref /etc/apt/preferences.d/eole-dev" >> Dockerfile