forked from tahiti-web-design/odoo8-prod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (30 loc) · 1.53 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM tahitiwebdesign/centos7-without-systemd
LABEL maintainer="paraita@tahitiwebdesign.com"
ENV ODOO_RPM_URL https://nightly.odoo.com/8.0/nightly/rpm/odoo_8.0.20171001.noarch.rpm
ENV ODOO_CFG /etc/odoo/openerp-server.conf
ENV WKHTMLTOX_URL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos7-amd64.rpm
# Installation de la locale FR
RUN localedef -i fr_FR -f UTF-8 fr_FR.UTF-8;
# Installation des dependances centos et odoo
RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs && \
yum clean all && yum -y update && yum -y install epel-release && \
yum -y update && yum -y install python-gevent tree less vim \
python-pip python-devel git libjpeg-devel libtiff-devel gcc \
libxslt-devel libxml2-devel graphviz openldap-devel;
COPY ./entrypoint.sh /
# Installation de odoo
# et creation du repertoire des addons metier
RUN curl -o odoo.rpm $ODOO_RPM_URL && yum -y install odoo.rpm && \
mkdir -p /mnt/extra-addons && chown -R odoo:odoo /mnt/extra-addons && \
mkdir -p /var/log/odoo && chown -R odoo:odoo /var/log/odoo;
# Installation de wkhtmltox 0.12.1
RUN curl -Lo wkhtmltox.rpm $WKHTMLTOX_URL && \
yum -y localinstall wkhtmltox.rpm && \
ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf;
EXPOSE 8089 8071
VOLUME ["/etc/odoo", "/var/lib/odoo", "/var/log/odoo/", "/mnt/extra-addons"]
HEALTHCHECK --interval=1m --timeout=30s \
CMD curl -f http://localhost:8069 || exit 1
USER odoo
ENTRYPOINT ["/entrypoint.sh"]
CMD ["openerp-server", "-c", "/etc/odoo/openerp-server.conf"]