Commit Graph

51 Commits

Author SHA1 Message Date
Simon Lejeune
ab612f290f [FIX] Odoo 8.0-10.0: entrypoints: pass the pg parameters with CMD
When nothing is passed as argument to the docker container, the
entrypoint will receive the content of the CMD of the dockerfile. In
this case we have to pass the database configuration arguments, else
Odoo won't run correctly. This is the case when you run the command of
our documentation:

``` docker run -p 8069:8069 --name odoo --link db:db -t odoo ```

However, it should still be possible to run custom command (like `ls /`).
2016-11-03 15:02:17 +01:00
Simon Lejeune
13fba407e1 [REF] Odoo 8.0-10.0: default USER and PASSWORD to odoo
Defaulting USER to postgres does not make sense as odoo prevents
creating a database with the user `postgres` (however, there's a bug
that allows it when set by environment variable, but still it does not
work later because Odoo does not use the environment variable to find
the databases in the `list_dbs` method).

Defaulting PASSWORD to odoo makes sense because it's what we set in
the documentationm and is even mandatory since we chose to pass the pg
connections parameters[1] and we did not set a default value for it.

[1] a3d207f2d4
2016-11-03 14:59:54 +01:00
Simon Lejeune
a3d207f2d4 [REF] Odoo 8.0-10.0: pass pg connection parameters as CLI arguments
Do not assume that Odoo will handle correctly the PG* environment
variables, because it won't.

We also rename the PG* variables in order to avoid confusion since we do
not export them anymore.
2016-11-03 14:58:56 +01:00
Sebastián Ramírez
9621c46392 [REF] Odoo 8.0-10.0: do not require linking environment variables
The entry points of the Odoo docker images require the presence of the
following environment variables:
    - DB_PORT_5432_TCP_ADDR
    - DB_PORT_5432_TCP_PORT
    - DB_ENV_POSTGRES_USER
    - DB_ENV_POSTGRES_PASSWORD

We use them to set the PGHOST, PGPORT, PGUSER and PGPASSWORD environment
variable that will then be read by Odoo in order to connect to the
database server.

As the first ones are automatically created by Docker when we use the linking
system, it's not possible to run Odoo without the linking system and,
for example, with Docker compose.

In order to make it work with Docker compose and keep the backward
compatibility with the linking system, we have to provide sane
fallbacks to the assignation of the PGHOST, PGPORT, PGUSER and
PGPASSWORD environment variable.

We do that in this commit by defaulting the assignation of the postgres
host to "db" and the port to "5432" because, if you follow our image
documentation, that's what you get. We also introduce the handling of
two others environment variable in the Odoo entry point: POSTGRES_USER
and POSTGRES_PASSWORD. They will be used as fallbacks for
DB_ENV_POSTGRES_USER and DB_ENV_POSTGRES_PASSWORD.
2016-10-26 13:33:38 +02:00
Simon Lejeune
6da3a1848f [REF] Odoo 8.0-10.0: install needed dependencies for worker mode
ie python-gevent and psycogreen. As psycogreen is not packaged in
debian jessie we have to install it with pip. As python-gevent is in the
recommanded packaged of odoo and we don't install them, we install it
explicitely.
2016-10-25 19:30:16 +02:00
Simon Lejeune
0560419f9a [REF] Odoo 9.0, 10.0: remove node-clean-css dependency
following 123e51f4d5
2016-10-25 15:22:48 +02:00
Simon Lejeune
c4b4a8f242 Odoo: Update 8.0, 9.0 and 10.0 to release 20161025 2016-10-25 13:40:05 +02:00
Veikko Väätäjä
0fbea3c734 [ADD] Odoo: 10.0
* Odoo version 10 created. Release 20161007.
* Fixed old path.
* Fixed startup command.
* Changed to new naming convention and environment variables.

Closes #75
2016-10-25 12:11:31 +02:00
Olivier Dony
b3d55d2959 Odoo: Update 8.0 and 9.0 to release 20160726 2016-07-26 17:44:39 +02:00
Aaron Bohy
ee881ca4b8 Odoo: Update 8.0 and 9.0 to release 20160609 2016-06-09 15:11:02 +02:00
Aaron Bohy
57e968cee9 Odoo: Update 8.0 and 9.0 to release 20160428 2016-04-28 16:22:46 +02:00
Aaron Bohy
f13ffb4c91 Odoo: Update 8.0 and 9.0 to release 20160324 2016-03-24 16:41:58 +01:00
Aaron Bohy
d5392866c1 Odoo: Update 8.0 and 9.0 to release 20160204 2016-02-04 11:58:36 +01:00
Aaron Bohy
ad90fca59c Odoo: add checksum on odoo.deb download 2015-12-16 08:27:27 +01:00
Aaron Bohy
3c6b6b584b Odoo: Update 8.0 and 9.0 to version 20151215 2015-12-16 08:27:09 +01:00
Aaron Bohy
6e12a64947 [ADD] Odoo 9.0
Closes #32.
2015-10-08 14:56:09 +02:00
Aaron Bohy
4df13f1425 [IMP] openerp-server.conf: custom addons take priority over odoo addons
Moving the extra addons folder before the odoo addons folder in the addons_path
allows to use custom implementation of a given addon (if there are two addons
with the same name, one in extra-addons, the other in openerp/addons, the first
one will take priority over the second one which will simply be ignored).
2015-10-08 14:50:02 +02:00
Aaron Bohy
3b21d6757b [IMP] Dockerfile: install lessc from jessie's packages 2015-10-08 14:50:02 +02:00
Aaron Bohy
fac64b785d [FIX] Dockerfile: let odoo user owner of /mnt/extra-addons
This allows to directly create new addons in /mnt/extra-addons from inside
the container, e.g. using odoo scaffolding.

Closes #21.
2015-10-08 14:49:24 +02:00
Aaron Bohy
dbce067bb4 [IMP] Update Odoo to version 20151008 2015-10-08 14:49:24 +02:00
aab-odoo
65e2ae0e4f Merge pull request #33 from anassahmed/fix-reportlab
Install low-level renderpm for barcodes
2015-10-08 14:49:27 +02:00
Anass Ahmed
ed562babbc Installed low-level renderpm for barcodes
Odoo deb package has no dependency on python-renderpm which is needed by python-reportlab to support printing barcodes!
2015-10-02 01:45:25 +02:00
Aaron Bohy
0afa334549 [IMP] Update Odoo to version 20150401 2015-04-01 11:53:13 +02:00
aab-odoo
d0cbb42296 Merge pull request #11 from md5/slimmer-image
Slimmer image
2015-04-01 11:47:23 +02:00
Mike Dillon
6e4107c1a7 Remove npm after installing lessc 2015-03-17 10:51:06 -07:00
Mike Dillon
077d70f717 Add missing --no-install-recommends to apt-get install commands 2015-03-17 10:51:06 -07:00
Mike Dillon
9228300c52 [IMP] Add 'set -x' to long command chains 2015-03-17 18:40:25 +01:00
Samus CTO
aff73bfda4 [IMP] let bash resolve openerp-server path
It isn't necessary to specify an absolute path, so let's stay flexible
just in case.
2015-03-17 18:40:20 +01:00
Mike Dillon
129639a5e7 [IMP] Change to ENTRYPOINT + CMD
The addition of `set -e` in the run.sh script exposed the fact that it
was erroring out when `$# -eq 0`.
2015-03-17 18:38:36 +01:00
Samus CTO
59930badc2 [IMP] rename run.sh to entrypoint.sh for clarity sake 2015-03-17 18:02:26 +01:00
Samus CTO
1740d8a606 [IMP] permit: docker run odoo --arg & docker run odoo -- --arg 2015-03-17 17:56:24 +01:00
Mike Dillon
13fd5a1128 [IMP] Set OPENERP_SERVER to specify config file 2015-03-17 16:21:56 +01:00
Mike Dillon
6a6ceb5b10 [IMP] Allow PG* env vars to be set directly
Makes it possible to use a non-linked Postgres container without having
to fake $DB_* environment variables.
2015-03-17 16:02:53 +01:00
Aaron Bohy
89454a4c41 [IMP] Update Odoo to version 20150303 2015-03-03 12:14:18 +01:00
Samus CTO
095b471911 [IMP] export Odoo ports 8069 and 8071 2015-03-03 12:14:18 +01:00
Samus CTO
2b5021a8be [IMP] remove unneeded gosu from the Dockerfile 2015-03-03 12:14:18 +01:00
Samus CTO
f000eeed23 [IMP] use ENTRYPOINT instead of cmd and permit giving command arguments 2015-03-03 12:14:18 +01:00
Samus CTO
79b731f71d [IMP] use PG var envs to find the database
Set /var/lib/odoo as data_dir to keep filestore and addons located there
instead of /var/lib/odoo/.local/share/Odoo
2015-03-03 12:14:14 +01:00
Aaron Bohy
4c855a573d [ADD] extra addons dir for users addons
Set auto-reload to True in the default configuration so that update of
python and xml files does not need a restart of the server.

auto-reload options requires python-pyinotify to be installed.
2015-03-03 12:12:11 +01:00
Aaron Bohy
f035a31858 [REM] do not add nightly.odoo.com to sources list
Since Odoo is the PID 1, updating Odoo in the container has no effect.
2015-02-27 18:07:25 +01:00
Aaron Bohy
43973dfcf9 [FIX] Use wkhtmltopdf adviced version for 8.0
Latest wkhtmtopdf releases broke --dpi argument as well as
javascript loading in headers and footers.
2015-02-27 17:39:25 +01:00
Aaron Bohy
a86b7e6dbc [FIX] wkhtmltopdf 0.12.2 broken url due to update
The image now uses a local copy on our server of the release 0.12.2.1 to
prevent further problems with broken url.
2015-01-20 10:51:20 +01:00
aab-odoo
3a6e42c7a7 Merge pull request #1 from theyoux/master
Updated wkhtmltopdf version to 0.12.2
2015-01-13 18:23:40 +01:00
Loïc
ff18246d66 Fixed wkhtml version and checksum 2015-01-13 11:05:51 +01:00
Aaron Bohy
0c90527ef9 [ADD] Configuration file template 2015-01-05 10:10:47 +01:00
Aaron Bohy
d3fbe5fcdb [FIX] Dockerfile fixed according to Yosifkit's review
- Clean up of APT with rm -rf /var/lib/apt/lists/*
  - Use environment variables for db_user and db_password
  - Install Odoo release of 12/31/2014
2014-12-31 14:39:04 +01:00
Aaron Bohy
34987f1d77 [FIX] Dockerfile fixed according to tianon's review 2014-12-29 17:51:11 +01:00
Aaron Bohy
94ef35affe [IMP] Volume /var/lib/odoo to restore the filestore 2014-12-15 11:50:47 +01:00
Aaron Bohy
89f8e90878 [FIX] Dockerfile fixed according to Moghedrin review 2014-12-11 14:03:00 +01:00
aab-odoo
a517d19b14 Create README.md 2014-12-11 09:17:08 +01:00