49 lines
1.4 KiB
Docker
49 lines
1.4 KiB
Docker
FROM centos:6
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
# OpenERP dependencies from CentOS
|
|
# RUN yum update -y
|
|
RUN yum install -y python-devel python-lxml python-psycopg2 python-mako \
|
|
python-setuptools wget git gcc
|
|
# RUN yum groupinstall -y "Development Tools"
|
|
|
|
# PIP
|
|
# RUN easy_install setuptools
|
|
# RUN wget https://bootstrap.pypa.io/get-pip.py
|
|
# RUN python get-pip.py
|
|
# RUN pip install --upgrade pip setuptools wheel
|
|
|
|
# Create odoo user
|
|
RUN useradd odoo -md /opt/odoo
|
|
WORKDIR /opt/odoo
|
|
USER odoo
|
|
RUN mkdir -p /opt/odoo/log/openerp-web
|
|
|
|
# Web Client
|
|
RUN wget https://launchpad.net/openobject-client-web/6.0/6.0.4/+download/openerp-web-6.0.4.tar.gz
|
|
RUN tar xzf openerp-web-6.0.4.tar.gz && rm openerp-web-6.0.4.tar.gz
|
|
RUN mv openerp-web-6.0.4 openerp-web
|
|
|
|
# COPY requirementsweb60.txt requirements.txt
|
|
# Replace >= to exact versions on scripts
|
|
RUN sed -i -- 's/>=/==/g' openerp-web/setup.py
|
|
RUN sed -i -- 's/>=/==/g' openerp-web/lib/populate.sh
|
|
# Babel specific : no version available prior to 0.9.6
|
|
RUN sed -i -- 's/0.9.4/0.9.6/g' openerp-web/setup.py
|
|
RUN sed -i -- 's/0.9.4/0.9.6/g' openerp-web/lib/populate.sh
|
|
USER root
|
|
|
|
# RUN pip install -r requirements.txt
|
|
|
|
WORKDIR /opt/odoo/openerp-web/lib
|
|
RUN bash populate.sh
|
|
|
|
WORKDIR /opt/odoo/openerp-web
|
|
RUN python setup.py install
|
|
USER odoo
|
|
WORKDIR /opt/odoo
|
|
COPY genconfweb60.sh genconf.sh
|
|
COPY launchweb60.sh launch.sh
|
|
|
|
CMD bash launch.sh
|