Switch trove-api to wsgi running under apache.

Drop 'USER trove' from trove-api, trove-api runs under
apache needs run as root

Change-Id: I8882484b32a3a3fbde52f58c1209e8c127ea9931
This commit is contained in:
wu.chunyang 2022-08-26 15:06:48 +08:00 committed by Michal Nasiadka
parent ab70c7618b
commit 1bb082d35a
3 changed files with 8 additions and 2 deletions

View File

@ -12,5 +12,3 @@ RUN chmod 644 /usr/local/bin/kolla_trove_extend_start
{% block trove_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER trove

View File

@ -6,3 +6,5 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
trove-manage db_sync
exit 0
fi
. /usr/local/bin/kolla_httpd_setup

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Switch trove-api to wsgi running under apache. Replace trove
user with root user in trove-api image, services running under
apache need root privilege.