[ADD]Odoo 8 and 10 base, dev, py3o images from CentOS7

This commit is contained in:
Fabien BOURGEOIS 2020-05-05 20:04:50 +02:00
parent d3f841a459
commit 4438eb1265
14 changed files with 300 additions and 8 deletions

View File

@ -21,6 +21,24 @@ services:
POSTGRES_PASSWORD: somethingToChange POSTGRES_PASSWORD: somethingToChange
PGDATA: /opt/odoo/pgdata PGDATA: /opt/odoo/pgdata
odoo8c7:
init: true
build:
context: ./odoo
dockerfile: Dockerfile.8.centos7
image: registry.yaltik.net/odoo:yaltik8c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo: odoo:
init: true init: true
build: ./odoo build: ./odoo
@ -109,6 +127,34 @@ services:
dockerfile: Dockerfile.ext.10 dockerfile: Dockerfile.ext.10
image: registry.yaltik.net/odoo:yaltik10 image: registry.yaltik.net/odoo:yaltik10
odoobase10c7:
init: true
build:
context: ./odoo
dockerfile: Dockerfile.10.centos7
image: registry.yaltik.net/odoo:yaltikbase10c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo10c7:
init: true
extends:
file: base.yml
service: odoobase10c7
build:
context: ./odoo
dockerfile: Dockerfile.ext.10.centos7
image: registry.yaltik.net/odoo:yaltik10c7
odoo11: odoo11:
init: true init: true
build: build:

View File

@ -33,6 +33,24 @@ services:
DEV: 1 DEV: 1
PROXY_MODE: "False" PROXY_MODE: "False"
odoo8c7dev:
extends:
file: base.yml
service: odoo8c7
build:
context: ./odoo
dockerfile: Dockerfile.8.centos7.dev
image: registry.yaltik.net/odoodev:yaltik8c7
environment:
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
DEV: 1
PROXY_MODE: "False"
odoodev10: odoodev10:
extends: extends:
file: base.yml file: base.yml
@ -53,6 +71,26 @@ services:
LIMIT_MEMORY_SOFT: 7000000000 LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000 LIMIT_MEMORY_HARD: 16000000000
odoodev10c7:
extends:
file: base.yml
service: odoo10c7
build:
context: ./odoo
dockerfile: Dockerfile.10.centos7.dev
image: registry.yaltik.net/odoodev:yaltik10c7
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
odoodev12: odoodev12:
extends: extends:
file: base.yml file: base.yml

View File

@ -3,8 +3,7 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI # PostgreSQL CLI
# Mandatory for pyhton2 # Mandatory for pyhton2
RUN pip install --user -I humanize==0.5.1 RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
RUN pip install --user pgcli
COPY pgcli.sh ./ COPY pgcli.sh ./
# Odoo specific # Odoo specific
RUN pip install --user watchdog RUN pip install --user watchdog

View File

@ -3,8 +3,7 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI # PostgreSQL CLI
# Mandatory for pyhton2 # Mandatory for pyhton2
RUN pip install --user -I humanize==0.5.1 RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
RUN pip install --user pgcli
COPY pgcli.sh ./ COPY pgcli.sh ./
# Odoo specific # Odoo specific
RUN pip install --user watchdog RUN pip install --user watchdog

View File

@ -0,0 +1,55 @@
FROM centos:7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Odoo dependencies from Debian APT repository
RUN yum -y groupinstall "Development Tools" && 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
# 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
RUN pip install -U pip
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
# Launch scripts
COPY ./launch.sh ./
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
CMD [ "bash", "launch.sh" ]

View File

@ -0,0 +1,13 @@
FROM registry.yaltik.net/odoo:yaltik10c7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI
# Mandatory for pyhton2
RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

View File

@ -3,8 +3,7 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI # PostgreSQL CLI
# Mandatory for pyhton2 # Mandatory for pyhton2
RUN pip install --user -I humanize==0.5.1 RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
RUN pip install --user pgcli
COPY pgcli.sh ./ COPY pgcli.sh ./
# Odoo specific # Odoo specific
RUN pip install --user watchdog RUN pip install --user watchdog

View File

@ -0,0 +1,51 @@
FROM centos:7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Odoo dependencies from Debian APT repository
RUN yum -y groupinstall "Development Tools" && 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
# 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.5
# 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 postgresql95 libpqxx
# Fonts
RUN yum -y install liberation-fonts
# Create odoo user
RUN useradd odoo -md /opt/odoo
# Install OCB 8.0 latest
ENV ODOO_BRANCH 8.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
# Launch scripts
COPY ./launch.sh ./
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
CMD [ "bash", "launch.sh" ]

View File

@ -0,0 +1,9 @@
FROM registry.yaltik.net/odoo:yaltik8c7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
WORKDIR /opt/odoo/extra-addons
RUN git clone --depth 1 -b 8.0 https://github.com/OCA/server-tools
WORKDIR /opt/odoo
COPY shell.sh ./
COPY launch.dev.sh ./launch.sh

View File

@ -0,0 +1,22 @@
FROM registry.yaltik.net/odoo:yaltikbase10c7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Extra dependency
RUN pip install --user unidecode
# External code
WORKDIR /opt/odoo/extra-addons
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/community-data-files
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/reporting-engine
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/l10n-france
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/partner-contact
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/crm
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/queue
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/server-tools
RUN git clone --depth 1 -b 10.0 https://github.com/OCA/web
RUN git clone --depth 1 -b 10.0 https://github.com/Openworx/backend_theme
WORKDIR /opt/odoo
# Addons dependencies
RUN pip install --user openupgradelib

View File

@ -0,0 +1,13 @@
FROM registry.yaltik.net/odoo:yaltik10c7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Install local LibreOffice for better conversion and supported types
USER root
# Mailcap for mime.types support, required
RUN yum -y install libreoffice mailcap
# Addons dependencies
USER odoo
RUN pip install --user py3o.template && pip install --user py3o.formats
WORKDIR /opt/odoo

View File

@ -0,0 +1,13 @@
FROM registry.yaltik.net/odoo:yaltikpy3o10c7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI
# Mandatory for pyhton2
RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

View File

@ -3,8 +3,7 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# PostgreSQL CLI # PostgreSQL CLI
# Mandatory for pyhton2 # Mandatory for pyhton2
RUN pip install --user -I humanize==0.5.1 RUN pip install --user pgcli==2.2.0 --only-binary psycopg2
RUN pip install --user pgcli
COPY pgcli.sh ./ COPY pgcli.sh ./
# Odoo specific # Odoo specific
RUN pip install --user watchdog RUN pip install --user watchdog

View File

@ -36,3 +36,39 @@ services:
LIMIT_TIME_REAL: 6000 LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000 LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000 LIMIT_MEMORY_HARD: 16000000000
odoopy3o10c7:
init: true
build:
context: ./odoo
dockerfile: Dockerfile.py3o.10.centos7
image: registry.yaltik.net/odoo:yaltikpy3o10c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodevpy3o10c7:
extends: odoopy3o10c7
build:
context: ./odoo
dockerfile: Dockerfile.py3o.10.centos7.dev
image: registry.yaltik.net/odoodev:yaltikpy3o10c7
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000