-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4191198
commit 89e2b23
Showing
3 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# DOCKER image to run odoo 16 with Odoo Community Backports and OCA addons | ||
|
||
# WARNING: No work done yet for 16, this is a dummy release to keep track of | ||
# it and move onto 16. Do not use. | ||
FROM rubencabrera/odoo-base-image:16.0.1 | ||
MAINTAINER Rubén Cabrera Martínez <[email protected]> | ||
EXPOSE 8069 8071 8072 | ||
|
@@ -10,15 +8,12 @@ ENV LANG C.UTF-8 | |
RUN mkdir /opt/odoo; \ | ||
mkdir /var/log/odoo; \ | ||
mkdir /var/lib/odoo; \ | ||
mkdir /opt/repos; \ | ||
mkdir -p /opt/repos/oca; \ | ||
mkdir -p /opt/repos/other | ||
RUN useradd --home /opt/odoo --shell /bin/bash odoo | ||
RUN chown -R odoo:odoo /opt/odoo; chown -R odoo:odoo /var/lib/odoo; \ | ||
chown -R odoo:odoo /var/log/odoo; chown -R odoo:odoo /opt/repos | ||
|
||
# Con lo siguiente, cambiamos al usuario odoo y el path donde ejecuta los | ||
# comandos que se indiquen después. | ||
USER odoo | ||
WORKDIR /opt/odoo | ||
RUN git clone --branch 16.0 --depth 1 https://github.com/oca/ocb.git /opt/odoo | ||
|
@@ -90,7 +85,7 @@ WORKDIR /opt | |
USER root | ||
RUN mkdir /opt/config | ||
COPY ./odoo-server.conf /opt/config/odoo-server.conf | ||
ENV OPENERP_SERVER /opt/config/odoo-server.conf | ||
ENV OPENERP_SERVER_CONF /opt/config/odoo-server.conf | ||
|
||
RUN chown -R odoo:odoo /opt/config | ||
RUN sed -i '/^#.*Storage/s/^#//' /etc/systemd/journald.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters