[FIX]Odoo 8C7 : needs scl enable for pg tools
This commit is contained in:
parent
3200366b1f
commit
067c64cfd9
@ -15,15 +15,10 @@ RUN yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/
|
|||||||
RUN npm install -g less@2 less-plugin-clean-css
|
RUN npm install -g less@2 less-plugin-clean-css
|
||||||
|
|
||||||
# PostgreSQL 9.5
|
# PostgreSQL 9.5
|
||||||
# From SCLO ?
|
|
||||||
RUN yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
|
||||||
RUN yum -y install libpqxx
|
|
||||||
# PostgreSQL 9.5 needs SCL now
|
# PostgreSQL 9.5 needs SCL now
|
||||||
RUN yum install -y centos-release-scl
|
RUN yum install -y centos-release-scl
|
||||||
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
|
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
|
||||||
RUN yum install -y rh-postgresql95-postgresql
|
RUN yum install -y rh-postgresql95-postgresql
|
||||||
RUN ln -s /opt/rh/rh-postgresql95/root/usr/bin/pg_dump /usr/local/bin/
|
|
||||||
|
|
||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
RUN yum -y install liberation-fonts
|
RUN yum -y install liberation-fonts
|
||||||
@ -41,7 +36,7 @@ RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git
|
|||||||
RUN pip install --user -r OCB/requirements.txt
|
RUN pip install --user -r OCB/requirements.txt
|
||||||
|
|
||||||
# Launch scripts
|
# Launch scripts
|
||||||
COPY ./launch.sh ./
|
COPY ./launch8c7.sh ./launch.sh
|
||||||
COPY ./genconf.sh ./
|
COPY ./genconf.sh ./
|
||||||
|
|
||||||
# Post-install tasks
|
# Post-install tasks
|
||||||
|
10
odoo/odoo/launch8c7.sh
Normal file
10
odoo/odoo/launch8c7.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Needed on C7 for PG95 and pg tools
|
||||||
|
source /opt/rh/rh-postgresql95/enable
|
||||||
|
|
||||||
|
CONF=/opt/odoo/odoo.conf
|
||||||
|
ODOOCMD="python /opt/odoo/OCB/odoo.py --config $CONF"
|
||||||
|
|
||||||
|
# Configuration generation and Odoo launch
|
||||||
|
bash genconf.sh && $ODOOCMD
|
Loading…
Reference in New Issue
Block a user