Files
openstack-armada-app/upstream/openstack/python-horizon/debian/stx-horizon.stable_docker_image
Romulo Leite 11f8457ca1 Add build parameter on horizon image
Docker images build was failing due to conflict on GID
resolution on stx-horizon image. Adding UPDATE_SYSTEM_ACCOUNT
allows the build automation to update GID and UID to
perform the build

Test plan:

PASS: build horizon docker image
PASS: build all openstack docker images
PASS: Upload new image to a running openstack on AIO-SX
      and reapply the app to check pod health and that services are working

Closes-Bug: 2113898

Change-Id: Ic7d46c06d46ba441f6a33abcc7bb8cc3195a6c1f
Signed-off-by: Romulo Leite <romulo.leite@windriver.com>
2025-06-10 17:43:31 +00:00

28 lines
1.0 KiB
Plaintext

BUILDER=loci
LABEL=stx-horizon
PROJECT=horizon
PROJECT_REPO=https://opendev.org/openstack/horizon.git
PROJECT_REF=a8b3b4621f342742bac3a11708df869a6a9a5b15
UPGRADE_PIP_PACKAGES=pip
DIST_REPOS="OS"
PROJECT_UID=42425
PROJECT_GID=42425
UPDATE_SYSTEM_ACCOUNT="yes"
PIP_PACKAGES="\
coverage \
ldap \
pycryptodomex \
python-ceilometerclient \
pyudev \
pymemcache
"
PROFILES="fluent horizon apache"
CUSTOMIZATION="\
ln -s /etc/apache2/mods-available/wsgi.load /etc/apache2/mods-enabled/wsgi.load && \
ln -s /etc/apache2/mods-available/wsgi.conf /etc/apache2/mods-enabled/wsgi.conf && \
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.9/site-packages/django/db/backends/mysql/base.py && \
sed -i -e '/query.decode.errors=.replace../s/decode/encode/' /var/lib/openstack/lib/python3.9/site-packages/django/db/backends/mysql/operations.py && \
sed -i 's/Listen 80/# Listen 80/' /etc/apache2/ports.conf
"