blob: 6d34896d3dbf128607ffb69e14ea17d9c9b5e18c [file] [log] [blame]
Mohammed Naser564caa82025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser30004232025-02-20 16:43:21 -05003# Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser49aa2332025-02-17 16:53:31 -05006ARG OCTAVIA_GIT_REF=e15cb80d8f325e7474fb2175a1a8e9805a473295
Mohammed Naserda994232024-04-13 12:34:01 -04007ADD --keep-git-dir=true https://opendev.org/openstack/octavia.git#${OCTAVIA_GIT_REF} /src/octavia
8RUN git -C /src/octavia fetch --unshallow
Mohammed Naser49aa2332025-02-17 16:53:31 -05009ADD --keep-git-dir=true https://opendev.org/openstack/ovn-octavia-provider.git#stable/2024.2 /src/ovn-octavia-provider
Mohammed Naserda994232024-04-13 12:34:01 -040010RUN git -C /src/ovn-octavia-provider fetch --unshallow
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050011RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
12uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040013 --constraint /upper-constraints.txt \
14 /src/octavia \
15 /src/ovn-octavia-provider
16EOF
17
Mohammed Naser564caa82025-01-18 15:49:44 -050018FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040019RUN <<EOF bash -xe
20apt-get update -qq
21apt-get install -qq -y --no-install-recommends \
22 isc-dhcp-client openssh-client
23apt-get clean
24rm -rf /var/lib/apt/lists/*
25EOF
26COPY --from=build --link /var/lib/openstack /var/lib/openstack