blob: 893b3cf59cb2a429f31dd0f3e75e82d28c4ad7be [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/designate repo=https://opendev.org/openstack/designate.git branch=master
Mohammed Naser49aa2332025-02-17 16:53:31 -05007ARG DESIGNATE_GIT_REF=505ea9b1245e07b28e12c1be3ca5d5e86d77efaf
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/designate.git#${DESIGNATE_GIT_REF} /src/designate
9RUN git -C /src/designate fetch --unshallow
Rico Lin54df64a2024-04-16 05:30:25 +080010COPY patches/designate /patches/designate
11RUN git -C /src/designate apply --verbose /patches/designate/*
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -050012RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
13uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040014 --constraint /upper-constraints.txt \
15 /src/designate
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 bind9utils
23apt-get clean
24rm -rf /var/lib/apt/lists/*
25EOF
26COPY --from=build --link /var/lib/openstack /var/lib/openstack