[odoo-web] We need odoo.conf to stay persistent across rebuilds
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odoo-web] We need odoo.conf to stay persistent across rebuilds
- Date: Thu, 14 Feb 2019 12:56:41 +0000 (UTC)
commit 023018b1c6f0ff23c2add7620ae4772ad2ea2795
Author: Andrea Veri <averi redhat com>
Date: Thu Feb 14 13:56:21 2019 +0100
We need odoo.conf to stay persistent across rebuilds
Dockerfile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index e9fbc18..1a85315 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,12 @@
FROM odoo:11
USER root
-RUN echo 'without_demo = True' >> /etc/odoo/odoo.conf
-RUN echo 'logfile = /var/log/odoo/odoo.log' >> /etc/odoo/odoo.conf
-RUN sed -i '/addons_path/d' /etc/odoo/odoo.conf
-RUN echo 'addons_path = /mnt/extra-addons, /opt/odoo/custom-addons' >> /etc/odoo/odoo.conf
-RUN sed -i '/dbfilter/d' /etc/odoo/odoo.conf
-RUN echo 'dbfilter = ^odoo$' >> /etc/odoo/odoo.conf
+#RUN echo 'without_demo = True' >> /etc/odoo/odoo.conf
+#RUN echo 'logfile = /var/log/odoo/odoo.log' >> /etc/odoo/odoo.conf
+#RUN sed -i '/addons_path/d' /etc/odoo/odoo.conf
+#RUN echo 'addons_path = /mnt/extra-addons, /opt/odoo/custom-addons' >> /etc/odoo/odoo.conf
+#RUN sed -i '/dbfilter/d' /etc/odoo/odoo.conf
+#RUN echo 'dbfilter = ^odoo$' >> /etc/odoo/odoo.conf
RUN mkdir -p /opt/odoo/custom-addons && chown 1000230000:1000230000 /opt/odoo/custom-addons
RUN apt-get update && apt-get install git unzip python3-wheel python3-pip -y
@@ -23,7 +23,7 @@ RUN userdel odoo && \
groupadd -g 1000230000 odoo && \
useradd -l -u 1000230000 -g odoo -s /bin/false odoo && \
chown odoo:odoo -R /etc/odoo && chown odoo:odoo -R /var/log/odoo && \
- chown odoo:odoo /var/lib/odoo
+ chown odoo:odoo /var/lib/odoo && rm /etc/odoo/odoo.conf && ln -s /var/lib/odoo/odoo.conf
/etc/odoo/odoo.conf
ADD plaid_ept.zip /tmp
RUN unzip plaid_ept.zip -d /opt/odoo/custom-addons
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]