diff --git a/Makefile b/Makefile index dc22652..ae6d794 100644 --- a/Makefile +++ b/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 # ############## diff --git a/docker-compose.yml b/docker-compose.yml index 6870cc3..99a67b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/docker/repo_manifest_gen_org_prefix_path.py b/docker/repo_manifest_gen_org_prefix_path.py index 3456268..7838e11 100755 --- a/docker/repo_manifest_gen_org_prefix_path.py +++ b/docker/repo_manifest_gen_org_prefix_path.py @@ -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()