[ADD]Odoo v12 : images from OL8 (Strech end of life)
This commit is contained in:
parent
59b5719c00
commit
c3bd96fe6d
@ -58,6 +58,13 @@ services:
|
||||
dockerfile: Dockerfile.12
|
||||
image: registry.yaltik.net/odoo:yaltikbase12
|
||||
|
||||
odoobase12ol8:
|
||||
init: true
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.12.ol8
|
||||
image: registry.yaltik.net/odoo:yaltikbase12ol8
|
||||
|
||||
odoo12:
|
||||
init: true
|
||||
build:
|
||||
@ -65,6 +72,13 @@ services:
|
||||
dockerfile: Dockerfile.ext.12
|
||||
image: registry.yaltik.net/odoo:yaltik12
|
||||
|
||||
odoo12ol8:
|
||||
init: true
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.ext.12.ol8
|
||||
image: registry.yaltik.net/odoo:yaltik12ol8
|
||||
|
||||
odoobase14:
|
||||
init: true
|
||||
build:
|
||||
|
@ -31,6 +31,12 @@ services:
|
||||
dockerfile: Dockerfile.12.dev
|
||||
image: registry.yaltik.net/odoodev:yaltik12
|
||||
|
||||
odoodev12ol8:
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.12.ol8.dev
|
||||
image: registry.yaltik.net/odoodev:yaltik12ol8
|
||||
|
||||
odoodev14:
|
||||
build:
|
||||
context: ./odoo
|
||||
|
43
odoo/odoo/Dockerfile.12.ol8
Normal file
43
odoo/odoo/Dockerfile.12.ol8
Normal file
@ -0,0 +1,43 @@
|
||||
FROM oraclelinux:8
|
||||
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
||||
|
||||
# Odoo dependencies from OL repository and from EPEL, WKHTML
|
||||
# Then PG10 and fonts
|
||||
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 xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig python3-virtualenv libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg2 freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel mailcap nodejs npm python3-pip postgresql libpq liberation-fonts && \
|
||||
yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm && \
|
||||
yum clean all
|
||||
|
||||
|
||||
# Install NPM dependencies
|
||||
RUN npm install -g less@3 less-plugin-clean-css@1.5.1
|
||||
|
||||
# Create odoo user
|
||||
RUN useradd odoo -md /opt/odoo
|
||||
|
||||
# Install OCB 12.0 latest
|
||||
ENV ODOO_BRANCH 12.0
|
||||
WORKDIR /opt/odoo
|
||||
# Default user : odoo
|
||||
USER odoo
|
||||
RUN mkdir pipcache data backups extra-addons custom-addons && \
|
||||
git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git && \
|
||||
pip3 install --user --no-cache-dir -r OCB/requirements.txt && \
|
||||
pip3 install --no-cache-dir --user phonenumbers==8.12.44
|
||||
|
||||
WORKDIR /opt/odoo
|
||||
|
||||
# Launch scripts
|
||||
COPY ./launch12.sh ./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" ]
|
13
odoo/odoo/Dockerfile.12.ol8.dev
Normal file
13
odoo/odoo/Dockerfile.12.ol8.dev
Normal file
@ -0,0 +1,13 @@
|
||||
FROM registry.yaltik.net/odoo:yaltik12ol8
|
||||
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
||||
|
||||
# PostgreSQL CLI
|
||||
# RUN pip3 install --user pgcli
|
||||
# COPY pgcli.sh ./
|
||||
# Odoo specific
|
||||
# Gevent : last py 3.6, fix local dev problem with CPU 100% on Fedora (kernel problem ?)
|
||||
RUN pip3 install --user --no-cache-dir watchdog==2.1.7 gevent==21.12.0
|
||||
COPY shell12.sh /opt/odoo/shell.sh
|
||||
COPY i18n.sh /opt/odoo/i18n.sh
|
||||
COPY launch12.dev.sh /opt/odoo/launch.sh
|
||||
ENV DEV 1
|
27
odoo/odoo/Dockerfile.ext.12.ol8
Normal file
27
odoo/odoo/Dockerfile.ext.12.ol8
Normal file
@ -0,0 +1,27 @@
|
||||
FROM registry.yaltik.net/odoo:yaltikbase12ol8
|
||||
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
||||
|
||||
# External code
|
||||
WORKDIR /opt/odoo/extra-addons
|
||||
RUN git clone --depth 1 -b 12.0 https://github.com/OCA/community-data-files && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/l10n-france && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/queue && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/partner-contact && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/social && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/server-brand && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/web && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/OCA/website && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/muk-it/muk_base && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/muk-it/muk_misc && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/muk-it/muk_web && \
|
||||
git clone --depth 1 -b 12.0 https://github.com/muk-it/muk_website
|
||||
|
||||
# Custom code
|
||||
WORKDIR /opt/odoo/custom-addons
|
||||
RUN git clone --depth 1 -b 12.0 https://git.yaltik.net/Yaltik/yaltik_odoo_custom.git
|
||||
|
||||
WORKDIR /opt/odoo
|
||||
|
||||
# Addons dependencies
|
||||
RUN pip3 install --user --no-cache-dir setuptools-scm==5.0.2 && \
|
||||
pip3 install --user --no-cache-dir git+https://github.com/OCA/openupgradelib.git@3.3.2
|
Loading…
Reference in New Issue
Block a user