File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if [ -v PASSWORD_FILE ]; then
6
6
PASSWORD=" $( < $PASSWORD_FILE ) "
7
7
fi
8
8
9
+ if [ -v ODOO_PYTHON_REQUIREMENTS -a -f " $ODOO_PYTHON_REQUIREMENTS " ]; then
10
+ # Install python requirements from specified requirements.txt file
11
+ pip install -r " $ODOO_PYTHON_REQUIREMENTS "
12
+ fi
13
+
9
14
# set the postgres database host, port, user and password according to the environment
10
15
# and pass them as arguments to the odoo process if not present in the config file
11
16
: ${HOST:= ${DB_PORT_5432_TCP_ADDR:= ' db' } }
@@ -17,7 +22,7 @@ DB_ARGS=()
17
22
function check_config() {
18
23
param=" $1 "
19
24
value=" $2 "
20
- if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
25
+ if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
21
26
value=$( grep -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " | cut -d " " -f3| sed ' s/["\n\r]//g' )
22
27
fi ;
23
28
DB_ARGS+=(" --${param} " )
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if [ -v PASSWORD_FILE ]; then
6
6
PASSWORD=" $( < $PASSWORD_FILE ) "
7
7
fi
8
8
9
+ if [ -v ODOO_PYTHON_REQUIREMENTS -a -f " $ODOO_PYTHON_REQUIREMENTS " ]; then
10
+ # Install python requirements from specified requirements.txt file
11
+ pip install -r " $ODOO_PYTHON_REQUIREMENTS "
12
+ fi
13
+
9
14
# set the postgres database host, port, user and password according to the environment
10
15
# and pass them as arguments to the odoo process if not present in the config file
11
16
: ${HOST:= ${DB_PORT_5432_TCP_ADDR:= ' db' } }
@@ -17,7 +22,7 @@ DB_ARGS=()
17
22
function check_config() {
18
23
param=" $1 "
19
24
value=" $2 "
20
- if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
25
+ if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
21
26
value=$( grep -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " | cut -d " " -f3| sed ' s/["\n\r]//g' )
22
27
fi ;
23
28
DB_ARGS+=(" --${param} " )
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if [ -v PASSWORD_FILE ]; then
6
6
PASSWORD=" $( < $PASSWORD_FILE ) "
7
7
fi
8
8
9
+ if [ -v ODOO_PYTHON_REQUIREMENTS -a -f " $ODOO_PYTHON_REQUIREMENTS " ]; then
10
+ # Install python requirements from specified requirements.txt file
11
+ pip install -r " $ODOO_PYTHON_REQUIREMENTS "
12
+ fi
13
+
9
14
# set the postgres database host, port, user and password according to the environment
10
15
# and pass them as arguments to the odoo process if not present in the config file
11
16
: ${HOST:= ${DB_PORT_5432_TCP_ADDR:= ' db' } }
@@ -17,7 +22,7 @@ DB_ARGS=()
17
22
function check_config() {
18
23
param=" $1 "
19
24
value=" $2 "
20
- if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
25
+ if grep -q -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " ; then
21
26
value=$( grep -E " ^\s*\b${param} \b\s*=" " $ODOO_RC " | cut -d " " -f3| sed ' s/["\n\r]//g' )
22
27
fi ;
23
28
DB_ARGS+=(" --${param} " )
You can’t perform that action at this time.
0 commit comments