Docker MyOdoo Public

Container Equitania/MyOdoo
# docker
cd /home/myodoo/Public/dockerbase/myodoo-public/


# Release aktualisieren
./getMyOdooRelease.sh


# Build
docker build -t myodoo/public-myodoo:170201 .

# Run
docker run -d --restart=always -p 8069:8069 --name="public-myodoo" --link myodoo-db:db  myodoo/public-myodoo:170201 start

# Filestore auf Host mounten
docker run -d --restart=always -p 8069:8069 --name="public-myodoo" -v ~/odoofilestore:/opt/odoo/data --link myodoo-db:db  myodoo/public-myodoo:170201 start

# Update
docker run -it --rm -p 8069:8069 --name="public-myodoo" --link myodoo-db:db  myodoo/public-myodoo:170201 update --database=test --db_user=myodoo --db_password=myodoo --db_host=db


# Update im Container
sudo -i -u odoo python3 \
    /opt/odoo/odoo-server/odoo-bin \
    --update=all \
    --workers=0 \
    --no-xmlrpc \
    --database=test \
    --db_user=ownerp \
    --db_password=ownerp2021 \
    --db_host=live-db \
    --stop-after-init


# Push to Dockerhub
$ docker push myodoo/public-myodoo



# bash Zugriff 
docker exec -ti "public-myodoo" env TERM=xterm bash -l