diff --git a/.env.example b/.env.example index 69975a1..552183f 100644 --- a/.env.example +++ b/.env.example @@ -5,7 +5,7 @@ APP_ENV=local INIT= UPDATE= -LOAD=base,web,session_redis,attachment_s3 +LOAD=base,web,session_redis,attachment_s3,sentry WORKERS=2 DEV_MODE=reload,xml DOMAIN=erp.odoocker.test diff --git a/odoo/odoo.conf b/odoo/odoo.conf index 39b7ccc..c4a2208 100644 --- a/odoo/odoo.conf +++ b/odoo/odoo.conf @@ -263,6 +263,23 @@ limit_request = ${LIMIT_REQUEST} ; External Integrations ; ;-----------------------------; +;--------------; +; Sentry ; +;--------------; +sentry_dsn = https://84799fb74edc4053aa3368aec3c2cb89@o4504596558577664.ingest.sentry.io/4504596563230720 +sentry_enabled = true +sentry_logging_level = warn +# sentry_exclude_loggers = werkzeug +# sentry_ignore_exceptions = odoo.exceptions.AccessDenied, +# odoo.exceptions.AccessError,odoo.exceptions.MissingError, +# odoo.exceptions.RedirectWarning,odoo.exceptions.UserError, +# odoo.exceptions.ValidationError,odoo.exceptions.Warning, +# odoo.exceptions.except_orm +sentry_include_context = true +# sentry_environment = production +# sentry_release = 1 +# sentry_odoo_dir = + ;-------------; ; Redis ; ;-------------; diff --git a/odoo/requirements.txt b/odoo/requirements.txt index 181b3bb..2fa9750 100644 --- a/odoo/requirements.txt +++ b/odoo/requirements.txt @@ -2,3 +2,4 @@ debugpy websocket-client redis boto3 +sentry-sdk diff --git a/odoo/third-party-addons.sh b/odoo/third-party-addons.sh index a34bc85..1e57cd8 100755 --- a/odoo/third-party-addons.sh +++ b/odoo/third-party-addons.sh @@ -4,17 +4,24 @@ set -e # Check if the repository directory exists if [ ! -d "odoo-cloud-platform" ]; then - git clone https://github.com/camptocamp/odoo-cloud-platform.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags; + git clone https://github.com/odoocker/odoo-cloud-platform.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags; cp -r odoo-cloud-platform/session_redis ${THIRD_PARTY_ADDONS}/session_redis cp -r odoo-cloud-platform/base_attachment_object_storage ${THIRD_PARTY_ADDONS}/base_attachment_object_storage cp -r odoo-cloud-platform/attachment_s3 ${THIRD_PARTY_ADDONS}/attachment_s3 fi -# Define the path to the manifest file -redis_manifest="${THIRD_PARTY_ADDONS}/session_redis/__manifest__.py" -# Define the path to the manifest file -s3_manifest="${THIRD_PARTY_ADDONS}/attachment_s3/__manifest__.py" +# Check if the repository directory exists +if [ ! -d "server-tools" ]; then + git clone https://github.com/odoocker/server-tools.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags; + cp -r server-tools/sentry ${THIRD_PARTY_ADDONS}/sentry +fi -# Modify the manifest file -python3 /fix-manifest.py $redis_manifest -python3 /fix-manifest.py $s3_manifest +# Define the path to the manifest files +redis_manifest="${THIRD_PARTY_ADDONS}/session_redis/__manifest__.py" +s3_manifest="${THIRD_PARTY_ADDONS}/attachment_s3/__manifest__.py" +sentry_manifest="${THIRD_PARTY_ADDONS}/sentry/__manifest__.py" + +# Modify the manifest files +# python3 /fix-manifest.py $redis_manifest +# python3 /fix-manifest.py $s3_manifest +# python3 /fix-manifest.py $sentry_manifest