[ADD] docker: format docker-compose and add doc docker readme

- docker delete ~/.poetry in creation
This commit is contained in:
Mathieu Benoit 2022-01-24 23:07:15 -05:00
parent bf4ee28223
commit 5ec0b1c447
3 changed files with 43 additions and 39 deletions

View file

@ -34,7 +34,6 @@ RUN cd $ODOO_PREFIX && \
RUN cd $ODOO_PREFIX && \ RUN cd $ODOO_PREFIX && \
./script/update_manifest_dev.sh ./script/update_manifest_dev.sh
# TODO delete poetry installation
# Install Poetry # Install Poetry
RUN cd $ODOO_PREFIX && \ RUN cd $ODOO_PREFIX && \
curl -sSL -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py && \ curl -sSL -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py && \
@ -43,7 +42,8 @@ RUN cd $ODOO_PREFIX && \
RUN cd $ODOO_PREFIX && \ RUN cd $ODOO_PREFIX && \
./.venv/bin/pip install --upgrade pip && \ ./.venv/bin/pip install --upgrade pip && \
./.venv/bin/python ~/.poetry/bin/poetry install && \ ./.venv/bin/python ~/.poetry/bin/poetry install && \
rm -rf artifacts rm -rf artifacts && \
rm -rf ~/.poetry
RUN cd $ODOO_PREFIX/.venv && \ RUN cd $ODOO_PREFIX/.venv && \
curl https://raw.githubusercontent.com/ERPLibre/multilingual-markdown/master/multilang_md.py > ./multilang_md.py && \ curl https://raw.githubusercontent.com/ERPLibre/multilingual-markdown/master/multilang_md.py > ./multilang_md.py && \

View file

@ -121,3 +121,7 @@ List your docker version
You need to push your docker image and update your tag, like 1.0.1: You need to push your docker image and update your tag, like 1.0.1:
> docker push technolibre/erplibre:VERSION > docker push technolibre/erplibre:VERSION
# Diagnostic
When getting and error about missing module, or after an upgrade, you need to update config file.
> make docker_exec_erplibre_gen_config