[IMP]Odoo 14 DEV : allow ipython
Also simplify / remove useless PATH on odoo14/15
This commit is contained in:
parent
f5abe40bb2
commit
7fb1872524
@ -68,11 +68,9 @@ WORKDIR /opt/odoo
|
||||
USER odoo
|
||||
RUN mkdir pipcache data backups extra-addons custom-addons
|
||||
RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git
|
||||
# PATH update
|
||||
RUN echo 'export PATH="$PATH:$HOME/.local/bin/"' >> /opt/odoo/.profile
|
||||
RUN pip3 install --user -U pip
|
||||
RUN .local/bin/pip3 install --user -r OCB/requirements.txt
|
||||
RUN .local/bin/pip3 install --user phonenumbers
|
||||
RUN pip3 install --user -r OCB/requirements.txt
|
||||
RUN pip3 install --user phonenumbers
|
||||
|
||||
# Launch scripts
|
||||
COPY ./launch14.sh ./launch.sh
|
||||
|
@ -5,7 +5,11 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||
# RUN .local/bin/pip3 install --user pgcli
|
||||
# COPY pgcli.sh ./
|
||||
# Odoo specific
|
||||
RUN .local/bin/pip3 install --user watchdog
|
||||
RUN pip3 install --user watchdog
|
||||
RUN pip3 install --user ipython
|
||||
RUN mkdir -p /opt/odoo/.ipython/profile_default
|
||||
COPY ipython_config.py ./.ipython/profile_default/
|
||||
COPY shell_helpers.py ./
|
||||
COPY shell12.sh ./shell.sh
|
||||
COPY i18n.sh ./i18n.sh
|
||||
COPY launch12.dev.sh ./launch.sh
|
||||
|
@ -54,11 +54,9 @@ WORKDIR /opt/odoo
|
||||
USER odoo
|
||||
RUN mkdir pipcache data backups extra-addons custom-addons
|
||||
RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git
|
||||
# PATH update
|
||||
RUN echo 'export PATH="$PATH:$HOME/.local/bin/"' >> /opt/odoo/.profile
|
||||
RUN pip3 install --user -U pip
|
||||
RUN .local/bin/pip3 install --user -r OCB/requirements.txt
|
||||
RUN .local/bin/pip3 install --user phonenumbers
|
||||
RUN pip3 install --user -r OCB/requirements.txt
|
||||
RUN pip3 install --user phonenumbers
|
||||
|
||||
# Launch scripts
|
||||
COPY ./launch14.sh ./launch.sh
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
python3 OCB/odoo-bin shell -c odoo.conf -d "$@" --no-xmlrpc
|
||||
python3 OCB/odoo-bin shell --shell-interface ipython -c odoo.conf -d "$@" --no-xmlrpc
|
||||
|
Loading…
x
Reference in New Issue
Block a user