-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
30 lines (26 loc) · 827 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Vérification des paramètres
developer_mode=0
while [[ "$#" -gt 0 ]]; do
case "$1" in
--dev)
developer_mode=1
;;
*)
echo -e '\e[31mUnknown option\e[0m'
exit 1
;;
esac
shift
done
# Installation des packages linux destinés au développeur
if [ "$developer_mode" -eq 1 ]; then
echo -e '\e[34mInstallation des packages linux destinés au développeur\e[0m'
sudo apt-get install pycodestyle pylint
fi
# Installation des packages linux
echo -e '\e[34mInstallation des packages linux\e[0m'
sudo apt-get install curl python3 python3-pip uvicorn postgresql postgresql-client
# Installation des packages python
echo -e '\e[34mInstallation des packages python\e[0m'
pip3 install --break-system-packages -r requirements.txt