|
### instruction to run via docker |
|
|
|
# install docker ( https://docs.docker.com/engine/installation/ubuntulinux/ ) |
|
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D |
|
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list # ubuntu 14.04 |
|
apt-get update |
|
apt-get purge lxc-docker |
|
apt-cache policy docker-engine |
|
apt-get install linux-image-extra-$(uname -r) # ubuntu 14.04 |
|
apt-get install docker-engine |
|
|
|
# install nginx on your host server |
|
apt-get install nginx |
|
# and add to configs from runbot.conf and odoo_params.conf file |
|
|
|
|
|
cd /some/path/ |
|
git clone https://github.com/yelizariev/runbot-addons.git # 8.0 branch |
|
git clone https://github.com/odoo/odoo-extra.git # master branch |
|
|
|
# we use 9.5 due to postgres bug: https://github.com/odoo/odoo/issues/8585 |
|
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db-9.5 postgres:9.5 |
|
|
|
# put openerp-server.conf file to /path/to/config/ |
|
# * change admin_password if you on production |
|
|
|
# replace /path/to/ to your paths |
|
docker run \ |
|
-v /path/to/odoo-extra/runbot:/mnt/extra-addons/runbot \ |
|
-v /path/to/runbot-addons:/mnt/runbot-addons \ |
|
-v /path/to/config/:/etc/odoo \ |
|
-h runbot.local \ |
|
-p 18069:8069 \ |
|
-p 8080:8080 \ |
|
--name odoo-runbot --link db-9.5:db \ |
|
-t odoo:8 |
|
# if you need to change something in docker run configuration, you have stop container and then remove it: |
|
# docker rm odoo-runbot |
|
|
|
# attach to container and follow instructions from configure-runbot.sh |
|
docker exec -i --user=root -t odoo-runbot /bin/bash |
|
|
|
# to stop/start odoo use commands: |
|
docker stop db-9.5 |
|
docker start db-9.5 |
|
docker stop odoo-runbot |
|
docker start -a odoo-runbot |
|
|
|
# create database "runbot" at http://localhost:18069/web/database/manager |
|
|
|
|
|
|
|
# follow insturctions from runbot-database.md |
|
|
|
# to work with database connect to db docker and run psql: |
|
# docker exec -i -t db /bin/bash |
|
# psql template1 odoo |
|
|
|
|
|
# TODO. After restarting docker, you need to trigger hook: |
|
# runbot.example.com:18069/runbot/hook/1 |
|
# it's required to reload nginx |
|
|