blob: 6654633990c101bc14b8a659dff721fbbb8f82e5 [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 Nasere786d962024-06-26 01:08:34 -04003# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser03e205a2025-03-19 23:37:52 -04006# renovate: name=openstack/octavia repo=https://opendev.org/openstack/octavia.git branch=master
Mohammed Naser49aa2332025-02-17 16:53:31 -05007ARG OCTAVIA_GIT_REF=e15cb80d8f325e7474fb2175a1a8e9805a473295
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/octavia.git#${OCTAVIA_GIT_REF} /src/octavia
9RUN git -C /src/octavia fetch --unshallow
Mohammed Naser03e205a2025-03-19 23:37:52 -040010# renovate: name=openstack/ovn-octavia-provider repo=https://opendev.org/openstack/ovn-octavia-provider.git branch=master
11ARG OVN_OCTAVIA_PROVIDER_GIT_REF=a101619646c6dd792d10042100a78e4f2e13a3af
12ADD --keep-git-dir=true https://opendev.org/openstack/ovn-octavia-provider.git#${OVN_OCTAVIA_PROVIDER_GIT_REF} /src/ovn-octavia-provider
Mohammed Naserda994232024-04-13 12:34:01 -040013RUN git -C /src/ovn-octavia-provider fetch --unshallow
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -050014RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
15uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040016 --constraint /upper-constraints.txt \
17 /src/octavia \
18 /src/ovn-octavia-provider
19EOF
20
Mohammed Naser564caa82025-01-18 15:49:44 -050021FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN <<EOF bash -xe
23apt-get update -qq
24apt-get install -qq -y --no-install-recommends \
25 isc-dhcp-client openssh-client
26apt-get clean
27rm -rf /var/lib/apt/lists/*
28EOF
29COPY --from=build --link /var/lib/openstack /var/lib/openstack