EDITED
Use bellow config in your odoo.conf
to make it works by bypassing pgbouncer for queue_job
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
db_host=pgbouncer
db_name = odoo
when erorr mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') | |
do | |
$ cd path/to/odoo | |
$ pip install -r requirements.txt | |
# uninstall packagaes that not compatile with M1 | |
$ pip uninstall psycopg2 lxml libsass -y | |
# re-install using arch64 |
EDITED
Use bellow config in your odoo.conf
to make it works by bypassing pgbouncer for queue_job
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
db_host=pgbouncer
db_name = odoo
from odoo import api, fields, models | |
from odoo.tools import float_is_zero | |
from odoo.exceptions import UserError, ValidationError | |
import threading | |
import time | |
import logging | |
class StockMove(models.Model): | |
_inherit = 'stock.move' |
When Docker Desktop installed on Windows and WSL 2 activated and then the compute hibernate.
the date inside the docker will not up to date with the host. this issue will cause error in debian container (for exampe: doing apt update
)
to solve the error, update the clock with
wsl -d docker-desktop hwclock -s
in CMD.
$ ifstat -ntS -i eth0 |
Download Latest Opera Browser that has Instant Search feature at http://get.opera.com/ftp/pub/opera/desktop/67.0.3575.97/ |
Run Docker inside Docker Ubuntu Images
The story begin when I want to install docker inside mltooling/ml-workspace-minimal
images, which is based on ubuntu 18.
so here how to run docker inside docker ubuntu images
docker run -d --name mltool \
-p 8080:8080 \
-v /root:/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
# by default this is will be converted to string | |
# if you want cast to octal number you need custom cast function | |
FILE_UPLOAD_PERMISSIONS=0o644 |
#!/bin/bash | |
find -type f -not -perm 644 -exec chmod 644 {} \; |
# Install `node-prune` from https://github.com/tj/node-prune | |
curl -sf https://gobinaries.com/tj/node-prune | sh | |
# Find all `node_modules` directory | |
# and prune it. | |
find . -name "node_modules" -type d -exec node-prune {} \; |