Use the opendev uwsgi base image. A few additional changes are
needed beyond the container switch:
* WSGI protocol says headers must be a python list. Uwsgi is very
literal about that and does not permit an iterable, so we coerce
items() to a list.
* Add the zuul_storage_proxy package to the setup.cfg files list so
it gets installed.
* Remove a debug print.
Change-Id: I801d8b37699af8b937cc68d32f2a85c50eb91eb9
CLOUD_NAMES vs CLOUD_NAME is a one character difference which may
be easily overlooked. The split method will work even with only
one item and no ','. And in Zuul we already have the convention
of describing an input that accepts one or more items with a plural
noun.
Change-Id: I28b8b6be2b536d627bf77665b5c3e583000efbda
Currently the proxy expects the container name as the first element
of the path. It then adds a prefix followed by a "-" character to
the container name before using it.
To additionally support the case where no prefix is desired (so that
the path that the Zuul base job returns is the entire path used by
the proxy), remove the automatic addition of the "-" character. This
means that if no prefix is supplied, then the path is used as given.
To obtain the previous behavior, add a "-" character to the end of
the CONTAINER_PREFIX environment variable.
Change-Id: Ia480a11f78621ea0b2417f4b47878640f52db5da