Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: include script to list modules installed in a database from docker shell #18

Open
Nick-OpusVL opened this issue Jun 30, 2020 · 2 comments

Comments

@Nick-OpusVL
Copy link
Contributor

Nick-OpusVL commented Jun 30, 2020

Est: (0.5 1.5 2) h

Example usages (taken from customer project README):

List modules installed in a database

docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=test

Compare the modules installed in two databases

docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=test | sort > test-db-modules.txt
docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=qa | sort > qa-db-modules.txt
comm -3 test-db-modules.txt qa-db-modules.txt
@Nick-OpusVL Nick-OpusVL changed the title Proposal: include lsmod script Proposal: include script to list modules installed in a database from docker shell Jun 30, 2020
@Nick-OpusVL
Copy link
Contributor Author

We may have to fix #10 first though

@DaeronAlagos
Copy link

DaeronAlagos commented Jun 30, 2020

Could this be something like:

docker-compose exec odoo_postgresql psql -U odoo -d DATABASE_NAME -c "\pset pager" -c "SELECT name FROM ir_module_module WHERE state='installed'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants