mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
sample of debug
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
|||||||
- ./odoo/custom-addons:${CUSTOM_ADDONS}
|
- ./odoo/custom-addons:${CUSTOM_ADDONS}
|
||||||
- ./odoo/entrypoint.sh:/entrypoint.sh
|
- ./odoo/entrypoint.sh:/entrypoint.sh
|
||||||
- ./odoo/odoorc.sh:/odoorc.sh
|
- ./odoo/odoorc.sh:/odoorc.sh
|
||||||
|
command: /usr/bin/python3 -m debugpy --listen ${HTTP_INTERFACE}:8888 /usr/bin/odoo --config ${ODOO_RC}
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -53,6 +53,12 @@ RUN git clone ${ENTERPRISE_REPO} ${ROOT_PATH}/enterprise --depth 1 --branch ${OD
|
|||||||
#-----------------------#
|
#-----------------------#
|
||||||
# PIP Dependencies #
|
# PIP Dependencies #
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
|
# Copy PIP requirements
|
||||||
|
COPY ./odoo/requirements.txt /tmp/requirements.txt
|
||||||
|
|
||||||
|
# Install PIP requirements
|
||||||
|
RUN python3 -m pip install -r /tmp/requirements.txt
|
||||||
|
# RUN pip3 install debugpy
|
||||||
|
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
# Odoo Conf #
|
# Odoo Conf #
|
||||||
|
|||||||
@@ -30,6 +30,13 @@ case "$1" in
|
|||||||
exec odoo --config ${ODOO_RC} --database=${DB_NAME} --update=${UPDATE} --init=${INIT} --load=${SERVER_WIDE_MODULES} --dev=${DEV_MODE}
|
exec odoo --config ${ODOO_RC} --database=${DB_NAME} --update=${UPDATE} --init=${INIT} --load=${SERVER_WIDE_MODULES} --dev=${DEV_MODE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ${APP_ENV} = 'debug' ] ; then
|
||||||
|
# Automagically update the addons you are currently working on.
|
||||||
|
echo /usr/bin/python3 -m debugpy --listen 0.0.0.0:8071 /usr/bin/odoo --config ${ODOO_RC} --database= --update= --init= --load= --dev=
|
||||||
|
|
||||||
|
exec /usr/bin/python3 -m debugpy --listen 0.0.0.0:8071 /usr/bin/odoo --config ${ODOO_RC} --database=${DB_NAME} --update=${UPDATE} --init=${INIT} --load=${SERVER_WIDE_MODULES} --dev=${DEV_MODE}
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${APP_ENV} = 'testing' ] ; then
|
if [ ${APP_ENV} = 'testing' ] ; then
|
||||||
# Work in progres... (DO NOT USE)
|
# Work in progres... (DO NOT USE)
|
||||||
echo odoo --config ${ODOO_RC} --database=test_${DB_NAME} --db-filter=test_${DB_NAME} --test-enable --test-commit --log-handler=:DEBUG --log-level=debug --workers=0 --init= --update=
|
echo odoo --config ${ODOO_RC} --database=test_${DB_NAME} --db-filter=test_${DB_NAME} --test-enable --test-commit --log-handler=:DEBUG --log-level=debug --workers=0 --init= --update=
|
||||||
|
|||||||
1
odoo/requirements.txt
Normal file
1
odoo/requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
debugpy
|
||||||
Reference in New Issue
Block a user