Merge "Switch magnum image builds"

This commit is contained in:
Zuul 2020-07-23 00:45:07 +00:00 committed by Gerrit Code Review
commit 293eac8973
4 changed files with 8 additions and 17 deletions

View File

@ -13,23 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM docker.io/opendevorg/python-builder as builder
COPY bindep.txt /tmp/src/bindep.txt
ADD https://releases.openstack.org/constraints/upper/ussuri /tmp/src/upper-constraints.txt
RUN assemble magnum==10.0.0 \
python-memcached \
PyMySQL
FROM vexxhost/python-builder AS builder
FROM docker.io/opendevorg/uwsgi-base AS magnum-api-base
COPY --from=builder /output/ /output
RUN /output/install-from-bindep
FROM magnum-api-base AS magnum-api
FROM vexxhost/python-base AS magnum-api
EXPOSE 9511
ENV UWSGI_HTTP_SOCKET=:9511 UWSGI_WSGI_FILE=/usr/local/bin/magnum-api-wsgi
CMD ["/usr/local/bin/uwsgi","--ini","/etc/uwsgi/uwsgi.ini"]
FROM docker.io/opendevorg/python-base AS magnum-conductor
COPY --from=builder /output/ /output
RUN /output/install-from-bindep
FROM vexxhost/python-base AS magnum-conductor
CMD ["/usr/local/bin/magnum-conductor"]

View File

@ -0,0 +1 @@
--constraint https://releases.openstack.org/constraints/upper/ussuri

View File

@ -0,0 +1,4 @@
uWSGI
python-memcached
PyMySQL
git+https://opendev.org/openstack/magnum@stable/ussuri

View File

@ -4,9 +4,6 @@
provides: openstack-operator:image:magnum
vars: &id001
docker_images:
- context: images/magnum
repository: vexxhost/magnum-api-base
target: magnum-api-base
- context: images/magnum
repository: vexxhost/magnum-api
target: magnum-api