[ADD]Odoo 15
This commit is contained in:
parent
c9bd6f2391
commit
d1215dd978
@ -79,6 +79,20 @@ services:
|
||||
dockerfile: Dockerfile.ext.14
|
||||
image: registry.yaltik.net/odoo:yaltik14
|
||||
|
||||
odoobase15:
|
||||
init: true
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.15
|
||||
image: registry.yaltik.net/odoo:yaltikbase15
|
||||
|
||||
odoo15:
|
||||
init: true
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.ext.15
|
||||
image: registry.yaltik.net/odoo:yaltik15
|
||||
|
||||
flectra:
|
||||
init: true
|
||||
build:
|
||||
|
@ -31,6 +31,12 @@ services:
|
||||
dockerfile: Dockerfile.14.dev
|
||||
image: registry.yaltik.net/odoodev:yaltik14
|
||||
|
||||
odoodev15:
|
||||
build:
|
||||
context: ./odoo
|
||||
dockerfile: Dockerfile.15.dev
|
||||
image: registry.yaltik.net/odoodev:yaltik15
|
||||
|
||||
flectradev:
|
||||
build:
|
||||
context: ./flectra
|
||||
|
77
odoo/odoo/Dockerfile.15
Normal file
77
odoo/odoo/Dockerfile.15
Normal file
@ -0,0 +1,77 @@
|
||||
FROM debian:bullseye-slim
|
||||
MAINTAINER Odoo S.A. <info@odoo.com>
|
||||
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||
|
||||
# Generate locale C.UTF-8 for postgres and general locale data
|
||||
# http://bugs.python.org/issue19846
|
||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates curl dirmngr fonts-noto-cjk gnupg libssl-dev node-less npm \
|
||||
python3-num2words python3-pdfminer python3-pip python3-phonenumbers python3-pyldap \
|
||||
python3-qrcode python3-renderpm python3-setuptools python3-slugify python3-vobject \
|
||||
python3-watchdog python3-xlrd python3-xlwt xz-utils
|
||||
|
||||
# WKHTMLTOPDF
|
||||
RUN curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb \
|
||||
&& echo 'ea8277df4297afc507c61122f3c349af142f31e5 wkhtmltox.deb' | sha1sum -c - \
|
||||
&& apt-get install -y --no-install-recommends ./wkhtmltox.deb \
|
||||
&& rm -f wkhtmltox.deb
|
||||
|
||||
# PostgreSQL-client
|
||||
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& export GNUPGHOME \
|
||||
&& repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
|
||||
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
|
||||
&& gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \
|
||||
&& gpgconf --kill all \
|
||||
&& rm -rf "$GNUPGHOME" \
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends -y postgresql-client-14 libpq-dev
|
||||
#
|
||||
# NPM rtlcss
|
||||
RUN npm install -g rtlcss
|
||||
|
||||
# Needed to build
|
||||
RUN apt-get install -y --no-install-recommends build-essential git mercurial curl \
|
||||
python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev \
|
||||
libjpeg-dev libfreetype6-dev libssl-dev
|
||||
|
||||
# Packages cleanup
|
||||
RUN apt-get purge -y --auto-remove && apt-get clean
|
||||
|
||||
# Create odoo user
|
||||
RUN useradd odoo -md /opt/odoo
|
||||
|
||||
# Install OCB 15.0 latest
|
||||
ENV ODOO_BRANCH 15.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
|
||||
# PATH update
|
||||
RUN echo 'export PATH="$PATH:$HOME/.local/bin/"' >> /opt/odoo/.profile
|
||||
RUN pip3 install --user -U pip
|
||||
RUN .local/bin/pip3 install --user -r OCB/requirements.txt
|
||||
RUN .local/bin/pip3 install --user phonenumbers
|
||||
|
||||
# Launch scripts
|
||||
COPY ./launch14.sh ./launch.sh
|
||||
COPY ./genconf.sh ./
|
||||
|
||||
# Post-install tasks
|
||||
RUN touch odoo.conf
|
||||
ENV ODOO_RC /opt/odoo/odoo.conf
|
||||
|
||||
# Odoo default ports
|
||||
EXPOSE 8069 8071 8072
|
||||
|
||||
# Volumes : data dir for filestore and addons
|
||||
VOLUME /opt/odoo/data
|
||||
|
||||
CMD [ "bash", "launch.sh" ]
|
12
odoo/odoo/Dockerfile.15.dev
Normal file
12
odoo/odoo/Dockerfile.15.dev
Normal file
@ -0,0 +1,12 @@
|
||||
FROM registry.yaltik.net/odoo:yaltik15
|
||||
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||
|
||||
# PostgreSQL CLI
|
||||
# RUN .local/bin/pip3 install --user pgcli
|
||||
# COPY pgcli.sh ./
|
||||
# Odoo specific
|
||||
RUN .local/bin/pip3 install --user watchdog
|
||||
COPY shell12.sh ./shell.sh
|
||||
COPY i18n.sh ./i18n.sh
|
||||
COPY launch12.dev.sh ./launch.sh
|
||||
ENV DEV 1
|
23
odoo/odoo/Dockerfile.ext.15
Normal file
23
odoo/odoo/Dockerfile.ext.15
Normal file
@ -0,0 +1,23 @@
|
||||
FROM registry.yaltik.net/odoo:yaltikbase15
|
||||
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||
|
||||
# External code
|
||||
WORKDIR /opt/odoo/extra-addons
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/community-data-files
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/l10n-france
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/queue
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/partner-contact
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/social
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/server-brand
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/web
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/OCA/website
|
||||
RUN git clone --depth 1 -b 15.0 https://github.com/muk-it/muk_web
|
||||
|
||||
# Custom code
|
||||
# WORKDIR /opt/odoo/custom-addons
|
||||
# RUN git clone --depth 1 -b 15.0 https://git.yaltik.net/Yaltik/yaltik_odoo_custom.git
|
||||
|
||||
WORKDIR /opt/odoo
|
||||
|
||||
# Addons dependencies
|
||||
RUN .local/bin/pip3 install --user git+https://github.com/OCA/openupgradelib.git
|
Loading…
Reference in New Issue
Block a user