2022-02-11 15:41:44 +01:00
|
|
|
FROM oraclelinux:7
|
2020-05-05 20:04:50 +02:00
|
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
2022-02-11 15:41:44 +01:00
|
|
|
# Odoo dependencies from OL repository
|
|
|
|
RUN yum -y groupinstall "Development Tools"
|
|
|
|
RUN yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig python-virtualenv libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg-devel freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel mailcap
|
2020-05-05 20:04:50 +02:00
|
|
|
|
|
|
|
# EPEL for NodeJS
|
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
|
|
# Packages from EPEL
|
|
|
|
RUN yum --enablerepo=epel -y install nodejs npm python-pip
|
|
|
|
# WKHTMLTOPDF
|
|
|
|
RUN yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
|
|
|
|
|
|
|
|
# Install NPM dependencies
|
|
|
|
RUN npm install -g less@2 less-plugin-clean-css
|
|
|
|
|
|
|
|
# PostgreSQL 9.6
|
|
|
|
# From SCLO ?
|
|
|
|
RUN yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
|
|
|
RUN yum -y install postgresql96 libpqxx
|
|
|
|
|
|
|
|
|
|
|
|
# Fonts
|
|
|
|
RUN yum -y install liberation-fonts
|
|
|
|
|
|
|
|
# Upgrade pip
|
2021-03-27 15:12:00 +01:00
|
|
|
RUN pip install -U pip==20.3.4
|
2020-05-05 20:04:50 +02:00
|
|
|
RUN pip install -U setuptools
|
|
|
|
|
|
|
|
# Create odoo user
|
|
|
|
RUN useradd odoo -md /opt/odoo
|
|
|
|
|
|
|
|
# Install OCB 10.0 latest
|
|
|
|
ENV ODOO_BRANCH 10.0
|
|
|
|
WORKDIR /opt/odoo
|
|
|
|
# Default user : odoo
|
|
|
|
USER odoo
|
|
|
|
RUN mkdir pipcache data backups extra-addons custom-addons
|
|
|
|
RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git
|
|
|
|
RUN pip install --user -r OCB/requirements.txt
|
|
|
|
|
2022-02-25 12:38:37 +01:00
|
|
|
# Fix bad commit
|
|
|
|
WORKDIR /opt/odoo/OCB
|
|
|
|
RUN git config user.email "fabien@yaltik.com" && \
|
|
|
|
git config user.name "Fabien BOURGEOIS"
|
|
|
|
RUN git fetch origin pull/1113/head:10.0-binary-widget-fix && \
|
|
|
|
git cherry-pick 0eb02e12619cdd52f6a37accfb58c1b35a165fbe
|
|
|
|
WORKDIR /opt/odoo
|
|
|
|
|
2020-05-05 20:04:50 +02:00
|
|
|
# Launch scripts
|
2020-05-17 07:50:11 +02:00
|
|
|
COPY ./launch10.sh ./
|
2020-05-05 20:04:50 +02:00
|
|
|
COPY ./genconf.sh ./
|
|
|
|
|
|
|
|
# Post-install tasks
|
|
|
|
RUN touch odoo.conf
|
|
|
|
|
|
|
|
# Odoo default ports
|
|
|
|
EXPOSE 8069 8072
|
|
|
|
|
|
|
|
# Volumes : data dir for filestore and addons
|
|
|
|
VOLUME /opt/odoo/data
|
|
|
|
|
2020-05-17 07:50:11 +02:00
|
|
|
CMD [ "bash", "launch10.sh" ]
|