Merge pull request #26 from ERPLibre/docker_external_addons
Docker external addons
This commit is contained in:
commit
3b1d5190ba
3 changed files with 33 additions and 1 deletions
29
Makefile
29
Makefile
|
|
@ -29,6 +29,35 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
#########################
|
||||
# Addons installation #
|
||||
#########################
|
||||
.PHONY: addons_install_code_generator_demo
|
||||
addons_install_code_generator_demo:
|
||||
./run.sh --no-http --stop-after-init -d code_generator -i code_generator_demo -u code_generator_demo
|
||||
|
||||
.PHONY: addons_uninstall_code_generator_demo
|
||||
addons_uninstall_code_generator_demo:
|
||||
./run.sh --no-http --stop-after-init -d code_generator --uninstall code_generator_demo
|
||||
|
||||
############
|
||||
# docker #
|
||||
############
|
||||
# build docker
|
||||
.PHONY: docker_build
|
||||
docker_build:
|
||||
./script/docker_build.sh
|
||||
|
||||
# build docker release
|
||||
.PHONY: docker_build_release
|
||||
docker_build_release:
|
||||
./script/docker_build.sh --release
|
||||
|
||||
# docker clean all
|
||||
.PHONY: docker_clean_all
|
||||
docker_clean_all:
|
||||
docker system prune -a --volumes
|
||||
|
||||
##############
|
||||
# Git repo #
|
||||
##############
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ services:
|
|||
command: odoo
|
||||
volumes:
|
||||
# See the volume section at the end of the file
|
||||
- erplibre_data_dir:/home/odoo/.local/share/Odoo/
|
||||
- erplibre_data_dir:/home/odoo/.local/share/Odoo
|
||||
- ./addons/addons:/ERPLibre/addons/addons
|
||||
- erplibre_conf:/etc/odoo
|
||||
restart: always
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ addonsDirs = [abspath(join(addonsBaseDir, f)) for f in listdir(addonsBaseDir) if
|
|||
isdir(join(addonsBaseDir, f))]
|
||||
|
||||
# addonsDirs.insert(0, "/usr/lib/python3/dist-packages/odoo/addons/")
|
||||
# TODO path addons/addons is not exist in docker, so force to add it
|
||||
addonsDirs.insert(0, "/ERPLibre/addons/addons")
|
||||
addonsDirs.insert(0, "/ERPLibre/odoo/addons/")
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
|
|
|
|||
Loading…
Reference in a new issue