Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | 3000423 | 2025-02-20 16:43:21 -0500 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Mohammed Naser | 49aa233 | 2025-02-17 16:53:31 -0500 | [diff] [blame] | 6 | ARG OCTAVIA_GIT_REF=e15cb80d8f325e7474fb2175a1a8e9805a473295 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia.git#${OCTAVIA_GIT_REF} /src/octavia |
| 8 | RUN git -C /src/octavia fetch --unshallow |
Mohammed Naser | 49aa233 | 2025-02-17 16:53:31 -0500 | [diff] [blame] | 9 | ADD --keep-git-dir=true https://opendev.org/openstack/ovn-octavia-provider.git#stable/2024.2 /src/ovn-octavia-provider |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 10 | RUN git -C /src/ovn-octavia-provider fetch --unshallow |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 11 | RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe |
| 12 | uv pip install \ |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/octavia \ |
| 15 | /src/ovn-octavia-provider |
| 16 | EOF |
| 17 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 18 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | RUN <<EOF bash -xe |
| 20 | apt-get update -qq |
| 21 | apt-get install -qq -y --no-install-recommends \ |
| 22 | isc-dhcp-client openssh-client |
| 23 | apt-get clean |
| 24 | rm -rf /var/lib/apt/lists/* |
| 25 | EOF |
| 26 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |