Liste des paquets dans un fichier séparé

This commit is contained in:
Martin Pépin 2020-12-07 19:58:00 +01:00
parent 7f58b5fa00
commit 783fe1de32
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 36 additions and 7 deletions

View file

@ -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 () {

View file

@ -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