[IMP] Allow the usage of the official odoo image with dokku PaaS

This commit allow us to directly push this repo over dokku mini-Paas
this has some drawback:
 - the Dockerfile should be in the project root, a symlink is used
   here to allow simple version swap
 - expose port should be changed to 8080 to get advantages by the nginx
   configuration system from dokku

Signed-off-by: Claudio Mignanti <c.mignanti@gmail.com>
This commit is contained in:
Claudio Mignanti 2015-06-17 19:18:43 +02:00
parent 0afa334549
commit ba85bbe3ce
4 changed files with 10 additions and 4 deletions

View File

@ -31,15 +31,15 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
COPY ./entrypoint.sh /
COPY ./openerp-server.conf /etc/odoo/
COPY ./8.0/entrypoint.sh /
COPY ./8.0/openerp-server.conf /etc/odoo/
RUN chown odoo /etc/odoo/openerp-server.conf
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services
EXPOSE 8069 8071
EXPOSE 8080 8071
# Set the default config file
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf

View File

@ -32,7 +32,7 @@ auto_reload = True
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
xmlrpc_port = 8080
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071

1
Dockerfile Symbolic link
View File

@ -0,0 +1 @@
8.0/Dockerfile

View File

@ -4,3 +4,8 @@ About this Repo
This is the Git repo of the official Docker image for [Odoo](https://registry.hub.docker.com/_/odoo/). See the Hub page for the full readme on how to use the Docker image and for information regarding contributing and issues.
The full readme is generated over in [docker-library/docs](https://github.com/docker-library/docs), specifically in [docker-library/docs/odoo](https://github.com/docker-library/docs/tree/master/odoo).
This image can also bu used with dokku mini-PaaS as simple as:
```
dokku clone odoo https://github.com/odoo/docker
```