From 783fe1de3278dc3b19b06b0b64f5897190130ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 7 Dec 2020 19:58:00 +0100 Subject: [PATCH] =?UTF-8?q?Liste=20des=20paquets=20dans=20un=20fichier=20s?= =?UTF-8?q?=C3=A9par=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- provisioning/bootstrap.sh | 18 +++++++++++------- provisioning/packages.list | 25 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 provisioning/packages.list diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index 9b2bf9f2..9659f89d 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -17,16 +17,20 @@ readonly REDIS_PASSWD="dummy" readonly DJANGO_SETTINGS_MODULE="cof.settings.dev" -# Installation de paquets utiles -apt-get update +# --- +# Installation des paquets systèmes +# --- + +get_packages_list () { + sed 's/#.*$//' /vagrant/provisioning/packages.list | grep -v '^ *$' +} + # https://github.com/chef/bento/issues/661 export DEBIAN_FRONTEND=noninteractive + +apt-get update apt-get -y upgrade - # -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \ - # upgrade -apt-get install -y python3-pip python3-dev python3-venv libpq-dev postgresql \ - postgresql-contrib libjpeg-dev nginx git redis-server \ - libldap2-dev libsasl2-dev slapd ldap-utils +get_packages_list | xargs apt-get install -y # Postgresql pg_user_exists () { diff --git a/provisioning/packages.list b/provisioning/packages.list new file mode 100644 index 00000000..34714442 --- /dev/null +++ b/provisioning/packages.list @@ -0,0 +1,25 @@ +# Python +python3-pip +python3-dev +python3-venv + +# Pour installer authens depuis git.eleves +git + +# Postgres +libpq-dev +postgresql +postgresql-contrib + +# Pour Pillow +libjpeg-dev + +# Outils de prod +nginx # Test +redis-server + +# Le LDAP +libldap2-dev +libsasl2-dev +slapd +ldap-utils