[ADD] script update env: support partial install for docker
This commit is contained in:
parent
e85f580432
commit
07346c5238
2 changed files with 8 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ RUN cd $ODOO_PREFIX && \
|
||||||
RUN cd $ODOO_PREFIX && \
|
RUN cd $ODOO_PREFIX && \
|
||||||
ls -lha /ERPLibre && \
|
ls -lha /ERPLibre && \
|
||||||
echo "${ERPLIBRE_VERSION}" && \
|
echo "${ERPLIBRE_VERSION}" && \
|
||||||
./script/version/update_env_version.py --erplibre_version "${ERPLIBRE_VERSION}"
|
./script/version/update_env_version.py --erplibre_version "${ERPLIBRE_VERSION}" --partial_install
|
||||||
|
|
||||||
RUN cd $ODOO_PREFIX && ls ./manifest -la && \
|
RUN cd $ODOO_PREFIX && ls ./manifest -la && \
|
||||||
ls -lha /ERPLibre && \
|
ls -lha /ERPLibre && \
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,11 @@ def get_config():
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Install developer environment.",
|
help="Install developer environment.",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--partial_install",
|
||||||
|
action="store_true",
|
||||||
|
help="Preparation environment file, without installation. Docker need this",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--force_install",
|
"--force_install",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
@ -696,13 +701,14 @@ def main():
|
||||||
|
|
||||||
_logger.info("Validate environment")
|
_logger.info("Validate environment")
|
||||||
status = 0
|
status = 0
|
||||||
if update.config.install_dev or update.config.is_in_switch:
|
if update.config.install_dev or update.config.partial_install or update.config.is_in_switch:
|
||||||
status = update.validate_environment()
|
status = update.validate_environment()
|
||||||
if update.config.install:
|
if update.config.install:
|
||||||
status = update.install_system()
|
status = update.install_system()
|
||||||
if (
|
if (
|
||||||
update.config.force_install
|
update.config.force_install
|
||||||
or update.config.install_dev
|
or update.config.install_dev
|
||||||
|
or update.config.partial_install
|
||||||
or update.config.is_in_switch
|
or update.config.is_in_switch
|
||||||
) and not status:
|
) and not status:
|
||||||
update.update_environment()
|
update.update_environment()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue