From a11348f9798f9c5e51e92409ebf4d5b39988fd13 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 10 Dec 2014 11:56:30 +0100 Subject: [PATCH 1/6] [ADD] Odoo documentation --- odoo/README-short.txt | 1 + odoo/README.md | 97 ++++++++++++++++++++++++++++++++++++++++++ odoo/content.md | 60 ++++++++++++++++++++++++++ odoo/license.md | 2 + odoo/logo.png | Bin 0 -> 4635 bytes update.sh | 1 + 6 files changed, 161 insertions(+) create mode 100644 odoo/README-short.txt create mode 100644 odoo/README.md create mode 100644 odoo/content.md create mode 100644 odoo/license.md create mode 100644 odoo/logo.png diff --git a/odoo/README-short.txt b/odoo/README-short.txt new file mode 100644 index 00000000..c9f9c84c --- /dev/null +++ b/odoo/README-short.txt @@ -0,0 +1 @@ +Odoo (formerly known as OpenERP) is a suite of open-source business apps. diff --git a/odoo/README.md b/odoo/README.md new file mode 100644 index 00000000..47d299d8 --- /dev/null +++ b/odoo/README.md @@ -0,0 +1,97 @@ +# Supported tags and respective `Dockerfile` links + +- [`8`, `8.0` (*8.0/Dockerfile*)](https://github.com/odoo/docker/blob/master/8.0/Dockerfile) + +For more information about this image and its history, please see the [relevant +manifest file +(`library/odoo`)](https://github.com/docker-library/official-images/blob/master/library/odoo) +in the [`docker-library/official-images` GitHub +repo](https://github.com/docker-library/official-images). + +# What is Odoo? + +Odoo, formerly known as OpenERP, is a suite of open-source business apps +written in Python and released under the AGPL license. This suite of +applications covers all business needs, from Website/Ecommerce down to +manufacturing, inventory and accounting, all seamlessly integrated. It is the +first time ever a software editor managed to reach such a functional coverage. +Odoo is the most installed business software in the world. Odoo is used by +2.000.000 users worldwide ranging from very small companies (1 user) to very +large ones (300 000 users). + +> [www.odoo.com](https://www.odoo.com) + +![logo](https://raw.githubusercontent.com/docker-library/docs/master/odoo/logo.png) + +# How to use this image + +This image requires a running PostgreSQL server. + +## Start a PostgreSQL server + + docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres + +Setting POSTGRES\_USER and POSTGRES\_PASSWORD to odoo is required for the Odoo +image to use the Postgres server. + +## Start an Odoo instance + + docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo + +The alias of the container running Postgres must be db for Odoo to be able +to connect to the Postgres server. + +## Stop and restart an Odoo instance + + docker stop odoo + docker start -a odoo + +## Stop and restart a PostgreSQL server +When a PostgreSQL server is restarted, the Odoo instances +linked to that server must be restarted as well because the server address has +changed and the link is thus broken. + +Restarting a PostgreSQL server does not affect the created databases. + +## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo): + + docker exec -it odoo bash + # apt-get update + # apt-get install odoo + +## Running multiple Odoo instances + + docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo + docker run -p 127.0.0.1:8071:8069 --name odoo3 --link db:db -t odoo + +Please note that for plain use of mails and reports functionalities, when the +host and container ports differ (e.g. 8070 and 8069), one has to set, +in Odoo, Settings->Parameters->System Parameters (requires technical features), +web.base.url to the container port (e.g. 127.0.0.1:8069). + +# License + +View [license information](https://raw.githubusercontent.com/odoo/odoo/8.0/LICENSE) +for the software contained in this image. + +# User Feedback + +## Issues + +If you have any problems with or questions about this image, please contact us + through a [GitHub issue](https://github.com/odoo/docker/issues). + +You can also reach many of the official image maintainers via the +`#docker-library` IRC channel on [Freenode](https://freenode.net). + +## Contributing + +You are invited to contribute new features, fixes, or updates, large or small; +we are always thrilled to receive pull requests, and do our best to process them +as fast as we can. + +Before you start to code, we recommend discussing your plans +through a [GitHub issue](https://github.com/odoo/docker/issues), especially for more ambitious +contributions. This gives other contributors a chance to point you in the right +direction, give you feedback on your design, and help you find out if someone +else is working on the same thing. diff --git a/odoo/content.md b/odoo/content.md new file mode 100644 index 00000000..e4ae850c --- /dev/null +++ b/odoo/content.md @@ -0,0 +1,60 @@ +# What is Odoo? + +Odoo, formerly known as OpenERP, is a suite of open-source business apps +written in Python and released under the AGPL license. This suite of +applications covers all business needs, from Website/Ecommerce down to +manufacturing, inventory and accounting, all seamlessly integrated. It is the +first time ever a software editor managed to reach such a functional coverage. +Odoo is the most installed business software in the world. Odoo is used by +2.000.000 users worldwide ranging from very small companies (1 user) to very +large ones (300 000 users). + +> [www.odoo.com](https://www.odoo.com) + +%%LOGO%% + +# How to use this image + +This image requires a running PostgreSQL server. + +## Start a PostgreSQL server + + docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres + +Setting POSTGRES\_USER and POSTGRES\_PASSWORD to odoo is required for the Odoo +image to use the Postgres server. + +## Start an Odoo instance + + docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo + +The alias of the container running Postgres must be db for Odoo to be able +to connect to the Postgres server. + +## Stop and restart an Odoo instance + + docker stop odoo + docker start -a odoo + +## Stop and restart a PostgreSQL server +When a PostgreSQL server is restarted, the Odoo instances +linked to that server must be restarted as well because the server address has +changed and the link is thus broken. + +Restarting a PostgreSQL server does not affect the created databases. + +## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo): + + docker exec -it odoo bash + # apt-get update + # apt-get install odoo + +## Running multiple Odoo instances + + docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo + docker run -p 127.0.0.1:8071:8069 --name odoo3 --link db:db -t odoo + +Please note that for plain use of mails and reports functionalities, when the +host and container ports differ (e.g. 8070 and 8069), one has to set, +in Odoo, Settings->Parameters->System Parameters (requires technical features), +web.base.url to the container port (e.g. 127.0.0.1:8069). diff --git a/odoo/license.md b/odoo/license.md new file mode 100644 index 00000000..34797c93 --- /dev/null +++ b/odoo/license.md @@ -0,0 +1,2 @@ +View [license information](https://raw.githubusercontent.com/odoo/odoo/8.0/LICENSE) +for the software contained in this image. diff --git a/odoo/logo.png b/odoo/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..89d70da96803d79ea71d99a8e300bbe68ccbe2fb GIT binary patch literal 4635 zcmV+$66EcPP)L1M-?PsM5MLW{f!1j1uuhuzXlEf_BM-rtKp?ZM3%?NN3LE_G#5&} z3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6{>%nxyyP!>OZ(dj3<*ZJ&K=$y5k=spBTQhz4x4P6~VQ?YPO1ioMAGuzQA zMqx_Muo&dL9@tw%c2tHttF81089P3$GzJ%XxL6LnT1XlbXa(*$L}}3ZA~G+6pEC;g zUFo#wArZMW0xwVF-a{ZQI$1=1-RbcM6{gnZ=;qShftHxa*;b!TN~1}R0-nRMN-sg` z&_NZMQb)-0TF)q1k~CjL#?%oA_-{Nq(IhOFzZH>3tMT$7A0V87#d0tU7)1)l7 z0LK=~!PY1{_#(0t-S=yKgZcOy5t$M-wr_-Y7v1A1xrHJ!CMq9>PD4jQ8%;IAQPae# z&?E)mC&1nfc=`W8Hy+y-!y%sgqtD*{RLVT8HfGiH^$uk5at=Ct*}nlYnIR%q$JL9g zfrqPZ1kMwYUvx9~9$DzZQ{`lNeYj zH2@uLORE}hyIF1L#t4oO@E4=cB}t23LGM9z*{IGdqqVtEx(eN4FG+j;=fI7{aZ>J66NGadVh0=G>xlnNx+wTDW0GwYe2d|{Hj3}ip1nx0_k0Xz%4Y zX9mm>k(bf{dJWBZ1iG2^1oWnA6q*m*W#qCZ$^emzhN`5JoQY10KG`_*eJfUgHsctr zMDOlCQY;58X@bI0NGGB*2}YrJ$t(Hz0NwofMc{D}d8nFz8}#m#c~EBo=b=O7gNzy0 z!;<|bOD4Yr9`@{h RScL!p002ovPDHLkV1k99#@zq_ literal 0 HcmV?d00001 diff --git a/update.sh b/update.sh index 39ebf330..d1c938b4 100755 --- a/update.sh +++ b/update.sh @@ -39,6 +39,7 @@ declare -A otherRepos=( [mono]='https://github.com/mono/docker' [neurodebian]='https://github.com/neurodebian/dockerfiles' [nginx]='https://github.com/nginxinc/docker-nginx' + [odoo]='https://github.com/odoo/docker' [opensuse]='https://github.com/openSUSE/docker-containers-build' [perl]='https://github.com/Perl/docker-perl' [registry]='https://github.com/docker/docker-registry' From 08a936feff98f6b75bc7285f023b2dd6f6deb698 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 11 Dec 2014 16:43:48 +0100 Subject: [PATCH 2/6] [ADD] Section on how to restore filestore in a new instance --- odoo/README.md | 19 +++++++++++++++++-- odoo/content.md | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/odoo/README.md b/odoo/README.md index 47d299d8..29ca0392 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -53,13 +53,13 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo): +## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo) docker exec -it odoo bash # apt-get update # apt-get install odoo -## Running multiple Odoo instances +## Run multiple Odoo instances docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo docker run -p 127.0.0.1:8071:8069 --name odoo3 --link db:db -t odoo @@ -69,6 +69,21 @@ host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069). +## Access an existing database with a new Odoo instance +Suppose you created a database from an Odoo instance named old-odoo, and you +want to access this database from a new Odoo instance named new-odoo, e.g. +because you've just downloaded a newer Odoo image. + +By default, Odoo 8.0 uses a filestore (located at /var/lib/odoo/.local/share/Odoo/filestore/) +for attachments. You should restore this filestore in your new Odoo instance by +running + + docker run --volumes-from old-odoo -p 127.0.0.1:8070:8069 --name new-odoo --link db:db -t odoo + +You can also simply prevent Odoo from using the filestore by setting the system +parameter `ir_attachment.location` to `db-storage` in Settings->Parameters->System +Parameters (requires technical features). + # License View [license information](https://raw.githubusercontent.com/odoo/odoo/8.0/LICENSE) diff --git a/odoo/content.md b/odoo/content.md index e4ae850c..d9aca801 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -43,13 +43,13 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo): +## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo) docker exec -it odoo bash # apt-get update # apt-get install odoo -## Running multiple Odoo instances +## Run multiple Odoo instances docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo docker run -p 127.0.0.1:8071:8069 --name odoo3 --link db:db -t odoo @@ -58,3 +58,18 @@ Please note that for plain use of mails and reports functionalities, when the host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069). + +## Access an existing database with a new Odoo instance +Suppose you created a database from an Odoo instance named old-odoo, and you +want to access this database from a new Odoo instance named new-odoo, e.g. +because you've just downloaded a newer Odoo image. + +By default, Odoo 8.0 uses a filestore (located at /var/lib/odoo/.local/share/Odoo/filestore/) +for attachments. You should restore this filestore in your new Odoo instance by +running + + docker run --volumes-from old-odoo -p 127.0.0.1:8070:8069 --name new-odoo --link db:db -t odoo + +You can also simply prevent Odoo from using the filestore by setting the system +parameter `ir_attachment.location` to `db-storage` in Settings->Parameters->System +Parameters (requires technical features). From be48ec2de3e28efd66a715f86c393c8ae53d2819 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 29 Dec 2014 10:35:38 +0100 Subject: [PATCH 3/6] [IMP] Update Odoo section --- odoo/README.md | 7 +++++-- odoo/content.md | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/odoo/README.md b/odoo/README.md index 29ca0392..4c41fbf4 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -53,8 +53,11 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo) - +## Install the latest version of Odoo +The Odoo package is built every night to include latest functionalities and improvements. +To install the latest version of Odoo, enter the container of your Odoo instance +and update your version of Odoo using `apt-get`. + docker exec -it odoo bash # apt-get update # apt-get install odoo diff --git a/odoo/content.md b/odoo/content.md index d9aca801..ee541c32 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -43,8 +43,11 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Enter the container of an Odoo instance (e.g. to install the latest version of Odoo) - +## Install the latest version of Odoo +The Odoo package is built every night to include latest functionalities and improvements. +To install the latest version of Odoo, enter the container of your Odoo instance +and update your version of Odoo using `apt-get`. + docker exec -it odoo bash # apt-get update # apt-get install odoo From 321d7557dc07e614f67ceaa23354a2bcaa4a572a Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 31 Dec 2014 14:45:20 +0100 Subject: [PATCH 4/6] [FIX] POSTGRES_USER and POSTGRES_PASSWORD can be arbitrarily set The run.sh script of odoo image now uses environment variables DB_ENV_POSTGRES_USER and DB_ENV_POSTGRES_PASSWORD to configure odoo --- odoo/README.md | 3 --- odoo/content.md | 3 --- 2 files changed, 6 deletions(-) diff --git a/odoo/README.md b/odoo/README.md index 4c41fbf4..b08c0190 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -31,9 +31,6 @@ This image requires a running PostgreSQL server. docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres -Setting POSTGRES\_USER and POSTGRES\_PASSWORD to odoo is required for the Odoo -image to use the Postgres server. - ## Start an Odoo instance docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo diff --git a/odoo/content.md b/odoo/content.md index ee541c32..8df578fd 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -21,9 +21,6 @@ This image requires a running PostgreSQL server. docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres -Setting POSTGRES\_USER and POSTGRES\_PASSWORD to odoo is required for the Odoo -image to use the Postgres server. - ## Start an Odoo instance docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo From 4832a8ba6efcf6d084e31c07aa6d58f60116d130 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 5 Jan 2015 10:24:56 +0100 Subject: [PATCH 5/6] [ADD] Run Odoo with a custom configuration --- odoo/README.md | 8 ++++++++ odoo/content.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/odoo/README.md b/odoo/README.md index b08c0190..ba656d52 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -59,6 +59,14 @@ and update your version of Odoo using `apt-get`. # apt-get update # apt-get install odoo +## Run Odoo with a custom configuration + +The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`) +can be overriden at startup using volumes. Suppose you have a custom configuration +at `/path/to/config/openerp-server.conf`, then + + docker run -v /path/to/config:/etc/odoo -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo + ## Run multiple Odoo instances docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo diff --git a/odoo/content.md b/odoo/content.md index 8df578fd..db11d78d 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -49,6 +49,14 @@ and update your version of Odoo using `apt-get`. # apt-get update # apt-get install odoo +## Run Odoo with a custom configuration + +The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`) +can be overriden at startup using volumes. Suppose you have a custom configuration +at `/path/to/config/openerp-server.conf`, then + + docker run -v /path/to/config:/etc/odoo -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo + ## Run multiple Odoo instances docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo From b24aaa9b324c8a70296146322cc120f95e60d185 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 7 Jan 2015 09:50:33 +0100 Subject: [PATCH 6/6] [ADD] Tag latest and section 'How to upgrade' --- odoo/README.md | 13 ++----------- odoo/content.md | 11 +---------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/odoo/README.md b/odoo/README.md index ba656d52..cbf3d283 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -1,6 +1,6 @@ # Supported tags and respective `Dockerfile` links -- [`8`, `8.0` (*8.0/Dockerfile*)](https://github.com/odoo/docker/blob/master/8.0/Dockerfile) +- [`8.0`, `8`, `latest` (*8.0/Dockerfile*)](https://github.com/odoo/docker/blob/0c90527ef908add1f125406a81519f9626d982d3/8.0/Dockerfile) For more information about this image and its history, please see the [relevant manifest file @@ -50,15 +50,6 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Install the latest version of Odoo -The Odoo package is built every night to include latest functionalities and improvements. -To install the latest version of Odoo, enter the container of your Odoo instance -and update your version of Odoo using `apt-get`. - - docker exec -it odoo bash - # apt-get update - # apt-get install odoo - ## Run Odoo with a custom configuration The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`) @@ -77,7 +68,7 @@ host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069). -## Access an existing database with a new Odoo instance +# How to upgrade this image Suppose you created a database from an Odoo instance named old-odoo, and you want to access this database from a new Odoo instance named new-odoo, e.g. because you've just downloaded a newer Odoo image. diff --git a/odoo/content.md b/odoo/content.md index db11d78d..cc3920d2 100644 --- a/odoo/content.md +++ b/odoo/content.md @@ -40,15 +40,6 @@ changed and the link is thus broken. Restarting a PostgreSQL server does not affect the created databases. -## Install the latest version of Odoo -The Odoo package is built every night to include latest functionalities and improvements. -To install the latest version of Odoo, enter the container of your Odoo instance -and update your version of Odoo using `apt-get`. - - docker exec -it odoo bash - # apt-get update - # apt-get install odoo - ## Run Odoo with a custom configuration The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`) @@ -67,7 +58,7 @@ host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069). -## Access an existing database with a new Odoo instance +# How to upgrade this image Suppose you created a database from an Odoo instance named old-odoo, and you want to access this database from a new Odoo instance named new-odoo, e.g. because you've just downloaded a newer Odoo image.