
Recently, LOCI changed its default so images are python3 if nothing is
specified at the *docker_image files. With the recent upversion of LOCI
in the build tools [1], we need to explictly set PYTHON3=no to images
that are still using python2. This commit fixes the StarlingX images to
use this parameter.
This will also remove all PYTHON3=yes since it's the detault now to
reduce uneeded LOCs and ease maintenance.
TEST PLAN
PASS build the stx-nova on the stable branch
PASS build the stx-openstackclients on the stable branch
PASS build the stx-platformclients on the stable branch
[1] 00bd632a68
Closes-Bug: #1958696
Depends-On: https://review.opendev.org/c/starlingx/root/+/826155
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: Idffec6b57371326e8667ac4b16ac9b11f22afe1a
18 lines
939 B
Plaintext
18 lines
939 B
Plaintext
BUILDER=loci
|
|
LABEL=stx-horizon
|
|
PROJECT=horizon
|
|
PROJECT_REPO=https://opendev.org/openstack/horizon.git
|
|
PIP_PACKAGES="pycrypto python-ceilometerclient \
|
|
coverage pyudev \
|
|
ldap pylint"
|
|
PROFILES="fluent horizon apache"
|
|
CUSTOMIZATION="\
|
|
sudo cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-python36-wsgi.conf /etc/httpd/conf.modules.d/10-wsgi.conf && \
|
|
sudo cp /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_rh-python36-wsgi.so /etc/httpd/modules/ && \
|
|
ln -s /bin/true /usr/bin/a2enmod && \
|
|
sed -i -e 's/raise ImproperlyConfigured..mysqlclient 1.3.13 or newer is required.*/pass/' /var/lib/openstack/lib/python3.6/site-packages/django/db/backends/mysql/base.py && \
|
|
sed -i -e '/query.decode.errors=.replace../s/decode/encode/' /var/lib/openstack/lib/python3.6/site-packages/django/db/backends/mysql/operations.py && \
|
|
sed -i 's/Listen 80/#Listen 80/' /etc/httpd/conf/httpd.conf \
|
|
"
|
|
|