add docker-compose recipe

This commit is contained in:
Christophe Siraut
2021-03-26 15:46:48 +01:00
parent c425371854
commit b063c6438a
5 changed files with 58 additions and 6 deletions

View File

@@ -21,12 +21,12 @@ sudo apt -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libns
sudo apt -y install apache2 python-dev libpq-dev libgeos-dev supervisor unzip virtualenv libcurl4-openssl-dev libssl-dev
sudo apt -y install libglib2.0-0 libsm6 libxext6 libxrender-dev
RELEASE=$(cat /etc/os-release | grep VERSION_CODENAME |cut -d "=" -f2)
#RELEASE=$(cat /etc/os-release | grep VERSION_CODENAME |cut -d "=" -f2)
sudo apt install python3 python3-dev python3-pip -y
sudo apt-get clean
echo `python3 --version`
#echo `python3 --version`
sudo service supervisor start && sudo supervisorctl stop all
#Maj de pip
@@ -40,12 +40,12 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
#cp -r ${HOME}/.nvm /home/synthese/.nvm
#chown -R synthese:synthese /home/synthese/.nvm
set +ex
cd ${DIR}/frontend
set +x
nvm install
set -x
echo `npm -v`
cd ${DIR}
set -ex
#Installation de taxhub
#if [ ! -d /home/synthese ]; then
@@ -60,7 +60,8 @@ python3 -m pip install virtualenv==20.0.1 --user
sudo a2enmod rewrite proxy proxy_http
sudo apache2ctl restart
sudo apt-get install postgresql postgresql-client postgresql postgresql-postgis -y
sudo apt-get install -y postgresql postgresql-client postgresql-postgis postgresql-server-dev-11
sudo apt-get clean
sudo adduser postgres sudo
sudo service postgresql start