Mauro Rosero P
c1721b5168
- Se agrega archivo entrypoint.sh a plantillas de configuración - Se agrega funcionalidad para copiar plantilla entrypoint.sh a la raíz del proyecto - Otras modificaciones menores
15 lines
514 B
Bash
15 lines
514 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# set the postgres database host, port, user and password according to the environment
|
|
# and pass them as arguments to the odoo process if not present in the config file
|
|
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
|
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
|
|
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
|
|
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo15@2021'}}}
|
|
|
|
# install python packages
|
|
pip3 install pip --upgrade
|
|
pip3 install -r /etc/odoo/requirements.txt
|
|
|