docker_images/odoo/odoo/Dockerfile.60
2021-01-28 10:18:59 +01:00

56 lines
1.8 KiB
Docker

FROM oraclelinux:6
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# OpenERP dependencies from CentOS
RUN yum update -y
RUN yum install -y python-devel pychart python-dateutil python-reportlab \
python-lxml python-psycopg2 python-mako python-setuptools pytz PyYAML graphviz \
python-imaging wget git unzip gcc
# RUN yum groupinstall -y "Development Tools"
# Install OpenERP dependencies not available from CentOS6 repo
RUN easy_install pydot==1.0.29
RUN easy_install vobject==0.8.2
RUN easy_install PyWebDAV==0.9.4.1
# Alternative : home install PyWebDAV, not useless finally
# RUN wget https://files.pythonhosted.org/packages/e9/14/5f2a654233e533797f32dd670dab8dd61ac974d5105950481e872bddb898/PyWebDAV-0.9.8.tar.gz
# RUN tar xzf PyWebDAV-0.9.8.tar.gz
# WORKDIR /PyWebDAV-0.9.8
# RUN python setup.py develop
# Create odoo user
RUN useradd odoo -md /opt/odoo
ENV ODOO_BRANCH 6.0
WORKDIR /opt/odoo
# Default user : odoo
USER odoo
# Install Odoo v6.0
RUN mkdir -p pipcache data backups extra-addons custom-addons www/html/
RUN wget https://github.com/odoo/odoo/archive/${ODOO_BRANCH}.zip
RUN unzip ${ODOO_BRANCH}.zip && rm ${ODOO_BRANCH}.zip
RUN mv odoo-${ODOO_BRANCH} odoo
# RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/odoo/odoo.git
USER root
WORKDIR /opt/odoo/odoo/
RUN python setup.py install
# OpenERP 6 extra addons was used, so install it... and its dependencies
WORKDIR /opt/odoo/
RUN easy_install bzr
RUN bzr init-repo extra-addons
RUN bzr branch lp:openobject-addons/extra-6.0 extra-addons/openerp-extra-6.0
# COPY openerp-extra-60.zip ./
# RUN unzip openerp-extra-60.zip && rm openerp-extra-60.zip
RUN easy_install egenix-mx-base
# Prepare launch
USER odoo
COPY genconf60.sh genconf.sh
COPY launch60.sh launch.sh
EXPOSE 8069 8070 8071
CMD bash launch.sh