Commit dc999928 by Long Phan

up

parents
This diff is collapsed. Click to expand it.
version: '2'
services:
web:
image: my-odoo-11.0:0.1
depends_on:
- db
ports:
- 8069:8069
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_USER=odoo
- DB_PASSWORD=odoo
volumes:
- myproject-odoo-data:/opt/odoo/data
- ./config:/etc/odoo
- ./custom_addons:/opt/odoo/custom_addons
stdin_open: true
tty: true
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: postgres:12
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- myproject-db-data:/var/lib/postgresql/data/pgdata
- myproject-backups-data:/backups
volumes:
myproject-odoo-data:
myproject-db-data:
myproject-backups-data:
FROM ubuntu:18.04
# Install System dependencies
RUN set -x; \
apt-get update \
&& apt-get install -y curl \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \
&& apt-get install -y --no-install-recommends \
./wkhtmltox.deb \
postgresql-client \
build-essential \
python3 \
python3-setuptools \
python3-pip \
python3-dev \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libssl-dev \
libsasl2-dev \
nano \
git \
openssh-client \
&& apt purge -y libssl-dev \
&& apt install -y -f libssl1.0-dev \
&& apt install -y --no-install-recommends node-less \
nodejs-dev \
node-gyp \
npm \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=11.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip3 install --no-cache-dir -r odoo/requirements.txt
# Install debugpy
RUN pip3 install -U debugpy
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV ODOO_RC /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069 8071 8072 3000
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
elif [ "$1" = 'debug' ]; then
shift
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:3001 ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
FROM ubuntu:18.04
# Install System dependencies
RUN set -x; \
apt-get update \
&& apt-get install -y curl \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \
&& apt-get install -y --no-install-recommends \
./wkhtmltox.deb \
postgresql-client \
build-essential \
python3 \
python3-setuptools \
python3-pip \
python3-dev \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libssl-dev \
libsasl2-dev \
nano \
git \
openssh-client \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=12.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip3 install --no-cache-dir -r odoo/requirements.txt
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV ODOO_RC /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
FROM ubuntu:18.04
# Install System dependencies
RUN set -x; \
apt-get update \
&& apt-get install -y curl \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \
&& apt-get install -y --no-install-recommends \
./wkhtmltox.deb \
postgresql-client \
build-essential \
python3 \
python3-setuptools \
python3-pip \
python3-dev \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libssl-dev \
libsasl2-dev \
nano \
git \
openssh-client \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=13.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip3 install --no-cache-dir -r odoo/requirements.txt
# Install debugpy
RUN pip3 install -U debugpy
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV ODOO_RC /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069 8071 8072 3000
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
elif [ "$1" = 'debug' ]; then
shift
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:3001 ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
FROM ubuntu:20.04
# Install System dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN set -x; \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
dirmngr \
fonts-noto-cjk \
gnupg \
libssl-dev \
node-less \
npm \
postgresql-client \
build-essential \
libpq-dev \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libssl-dev \
libsasl2-dev \
python3-setuptools \
python3-pip \
python3-dev \
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 \
nano \
git \
openssh-client \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb \
&& apt-get install -y --no-install-recommends ./wkhtmltox.deb \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=14.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip3 install psycopg2-binary
RUN pip3 install --no-cache-dir -r odoo/requirements.txt
# Install debugpy
RUN pip3 install -U debugpy
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV ODOO_RC /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069 8071 8072 3000
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
elif [ "$1" = 'debug' ]; then
shift
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:3001 ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
FROM ubuntu:20.04
ENV LANG C.UTF-8
# Install System dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN set -x; \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
dirmngr \
fonts-noto-cjk \
gsfonts \
gnupg \
libssl-dev \
node-less \
npm \
postgresql-client \
build-essential \
libpq-dev \
libxml2-dev \
libxslt1-dev \
libldap2-dev \
libssl-dev \
libsasl2-dev \
python3-setuptools \
python3-pip \
python3-dev \
python3-num2words \
python3-pdfminer \
python3-pip \
python3-phonenumbers \
python3-openssl \
python3-pyldap \
python3-qrcode \
python3-renderpm \
python3-setuptools \
python3-slugify \
python3-vobject \
python3-watchdog \
python3-xlrd \
python3-xlwt \
xz-utils \
nano \
git \
openssh-client \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb \
&& apt-get install -y --no-install-recommends ./wkhtmltox.deb \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=15.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip3 install psycopg2-binary
RUN pip3 install --no-cache-dir -r odoo/requirements.txt
# Install debugpy
RUN pip3 install -U debugpy
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV ODOO_RC /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069 8071 8072 3000
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
elif [ "$1" = 'debug' ]; then
shift
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:3001 ./odoo-bin \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; list_db = True
; log_db = False
; log_handler = [':INFO']
; log_level = info
; logfile = None
; longpolling_port = 8072
; max_cron_threads = 2
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071
\ No newline at end of file
FROM ubuntu:18.04
# Install System dependencies
RUN set -x; \
apt-get update \
&& apt-get install -y curl \
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \
&& apt-get install -y --no-install-recommends \
./wkhtmltox.deb \
postgresql-client \
build-essential \
python-minimal \
python-setuptools \
python-pip \
python-dev \
python-ldap \
nano \
git \
openssh-client \
libsasl2-dev \
python-dev \
libldap2-dev \
libssl-dev \
libpq-dev \
libxslt1-dev \
zlib1g-dev \
python-ldap \
ghostscript \
graphviz \
&& apt-get install -y --no-install-recommends \
nodejs-dev \
nodejs \
node-gyp \
npm \
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
# Create odoo user and directories and set permissions
RUN useradd -ms /bin/bash odoo \
&& mkdir /etc/odoo /opt/odoo /opt/odoo/scripts \
&& chown -R odoo:odoo /etc/odoo /opt/odoo
WORKDIR /opt/odoo
# Install Odoo and dependencies from latest source
USER odoo
RUN git clone --branch=8.0 --depth=1 https://github.com/odoo/odoo.git odoo
USER root
RUN pip install --no-cache-dir -r odoo/requirements.txt
RUN pip install --no-cache-dir --upgrade psycopg2
# Define runtime configuration
COPY src/entrypoint.sh /opt/odoo
COPY src/odoo.conf /etc/odoo
RUN chown odoo:odoo /etc/odoo/odoo.conf
USER odoo
RUN mkdir /opt/odoo/data /opt/odoo/custom_addons \
/opt/odoo/.vscode /home/odoo/.vscode-server
ENV OPENERP_SERVER /etc/odoo/odoo.conf
ENV PATH="/opt/odoo/scripts:${PATH}"
EXPOSE 8069
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["odoo"]
#!/bin/bash
set -e
cd odoo
if [ "$1" = 'odoo' ]; then
shift
exec ./openerp-server \
"--db_host=$DB_HOST" \
"--db_port=$DB_PORT" \
"--db_user=$DB_USER" \
"--db_password=$DB_PASSWORD" \
$ODOO_EXTRA_ARGS "$@"
else
exec "$@"
fi
[options]
http_interface = 0.0.0.0
http_port = 8069
longpolling_port = 8072
addons_path = /opt/odoo/odoo/openerp/addons,/opt/odoo/odoo/addons,/opt/odoo/custom_addons/
server_wide_modules = base,web
data_dir = /opt/odoo/data
list_db = False
proxy_mode = True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment