Last active
August 6, 2016 15:04
-
-
Save mgscreativa/aaebafc92bb8ceda9d8bc31d0275e743 to your computer and use it in GitHub Desktop.
Simple Argentinian Localized Odoo 8 Installer Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ADHOC_MODULES=( odoo-argentina account-analytic account-financial-tools account-invoicing account-payment crm hr hr-timesheet infrastructure manufacture miscellaneous multi-company partner product project purchase reporting-engine sale stock survey surveyor website ) | |
mkdir -p /opt/odoo80/config | |
mkdir -p /opt/odoo80/data_dir | |
mkdir -p /opt/odoo80/logs | |
mkdir -p /opt/odoo80/postgresql | |
mkdir -p /opt/odoo80/sources | |
cd /opt/odoo80/sources | |
echo "Installing/Upgrading aeroo_reports" | |
if [ -d "/opt/odoo80/sources/aeroo_reports" ] | |
then | |
git -C /opt/odoo80/sources/aeroo_reports pull | |
else | |
git clone --depth 1 --branch 8.0 https://github.com/aeroo/aeroo_reports | |
fi | |
echo "Installing/Upgrading OCA web" | |
if [ -d "/opt/odoo80/sources/web" ] | |
then | |
git -C /opt/odoo80/sources/web pull | |
else | |
git clone --depth 1 --branch 8.0 https://github.com/OCA/web | |
fi | |
for i in "${ADHOC_MODULES[@]}" | |
do | |
echo "Installing/Upgrading $i" | |
if [ -d "/opt/odoo80/sources/$i" ] | |
then | |
git -C /opt/odoo80/sources/$i pull | |
else | |
git clone --depth 1 --branch 8.0 https://github.com/ingadhoc/$i | |
fi | |
done | |
chmod 777 -R /opt/odoo80/config/ | |
chmod 777 -R /opt/odoo80/data_dir/ | |
chmod 777 -R /opt/odoo80/logs/ | |
chmod 777 -R /opt/odoo80/sources/ | |
sudo docker run -p 8989:8989 --name="aeroo_docs" --restart=always -d adhoc/aeroo-docs | |
sudo docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -v /opt/odoo80/postgresql:/var/lib/postgresql/data --restart=always --name db-odoo80 postgres:9.4 | |
sudo docker run --rm --link aeroo_docs:aeroo -p 8069:8069 -p 8072:8072 -v /opt/odoo80/config:/etc/odoo -v /opt/odoo80/logs:/var/log/odoo -v /opt/odoo80/sources:/mnt/extra-addons -v /opt/odoo80/data_dir:/var/lib/odoo --link db-odoo80:db --name odoo80 adhoc/odoo-adhoc:8.0 -- --stop-after-init -s --addons-path=/mnt/extra-addons/aeroo_reports,/mnt/extra-addons/web,/mnt/extra-addons/odoo-argentina,/mnt/extra-addons/account-analytic,/mnt/extra-addons/account-financial-tools,/mnt/extra-addons/account-invoicing,/mnt/extra-addons/account-payment,/mnt/extra-addons/crm,/mnt/extra-addons/hr,/mnt/extra-addons/hr-timesheet,/mnt/extra-addons/infrastructure,/mnt/extra-addons/manufacture,/mnt/extra-addons/miscellaneous,/mnt/extra-addons/multi-company,/mnt/extra-addons/partner,/mnt/extra-addons/product,/mnt/extra-addons/project,/mnt/extra-addons/purchase,/mnt/extra-addons/reporting-engine,/mnt/extra-addons/sale,/mnt/extra-addons/stock,/mnt/extra-addons/survey,/mnt/extra-addons/surveyor,/mnt/extra-addons/website --logfile=/var/log/odoo/odoo-server.log | |
sudo docker run -d --link aeroo_docs:aeroo -p 8069:8069 -p 8072:8072 -v /opt/odoo80/config:/etc/odoo -v /opt/odoo80/logs:/var/log/odoo -v /opt/odoo80/sources:/mnt/extra-addons -v /opt/odoo80/data_dir:/var/lib/odoo --link db-odoo80:db --restart=always --name odoo80 adhoc/odoo-adhoc:8.0 | |
#sudo docker run -ti -u root --link aeroo_docs:aeroo -p 8069:8069 -p 8072:8072 -v /opt/odoo80/config:/etc/odoo -v /opt/odoo80/sources:/mnt/extra-addons -v /opt/odoo80/data_dir:/var/lib/odoo --link db-odoo80:db --name odoo80 adhoc/odoo-adhoc:8.0 /bin/bash | |
#runuser -u odoo openerp-server -- -c /etc/odoo/openerp-server.conf | |
#conectar a shell de instancia contenedor docker: sudo docker exec -i -t odoo80 /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment