blob: 14c7db25f27541d6a7d34219bd0a085ada34615a [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 Naserda994232024-04-13 12:34:01 -04006ARG OCTAVIA_GIT_REF=824b51a1dad80292b7a8ad5d61bf3ce706b1fb29
7ADD --keep-git-dir=true https://opendev.org/openstack/octavia.git#${OCTAVIA_GIT_REF} /src/octavia
8RUN git -C /src/octavia fetch --unshallow
9ADD --keep-git-dir=true https://opendev.org/openstack/ovn-octavia-provider.git#master /src/ovn-octavia-provider
10RUN git -C /src/ovn-octavia-provider fetch --unshallow
11RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
12pip3 install \
13 --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