Profile build EOLE
This commit is contained in:
parent
caac9056fa
commit
244733e42e
40
hooks/containerbuild/debian/configure-eole-env
Executable file
40
hooks/containerbuild/debian/configure-eole-env
Executable file
@ -0,0 +1,40 @@
|
||||
#!/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
|
28
profiles/eole-dev.conf
Normal file
28
profiles/eole-dev.conf
Normal file
@ -0,0 +1,28 @@
|
||||
# Configuration générale du profil
|
||||
[profile]
|
||||
# Image Docker par défaut
|
||||
default_image=debian:jessie
|
||||
|
||||
# Configuration de l'étape de pré-construction du conteneur
|
||||
[containerbuild]
|
||||
hooks=containerbuild/debian/install-build-essential,
|
||||
containerbuild/debian/install-git,
|
||||
containerbuild/debian/configure-eole-env
|
||||
|
||||
# Configuration de l'étape de pré-construction du paquet
|
||||
[prebuild]
|
||||
hooks=prebuild/debian/load-project-db,
|
||||
prebuild/debian/copy-sources-to-workspace,
|
||||
prebuild/debian/complete-project-db,
|
||||
prebuild/debian/create-changelog,
|
||||
prebuild/debian/create-dummy-changelog,
|
||||
prebuild/debian/add-package-version-suffix,
|
||||
prebuild/debian/install-build-depends
|
||||
|
||||
# Configuration de l'étape de construction du paquet
|
||||
[build]
|
||||
hooks=build/debian/build
|
||||
|
||||
# Configuration de l'étape de post-construction du paquet
|
||||
[postbuild]
|
||||
hooks=postbuild/debian/export-dist
|
Loading…
Reference in New Issue
Block a user