blob: 1eafe38cb10e77fb21380700a7d5dbe9d8bf9107 [file] [log] [blame]
Mohammed Nasercc6868b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser735efe22024-06-26 23:46:25 -04003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Nasercc6868b2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naserfe5b7352025-03-19 23:37:52 -04006# renovate: name=openstack/designate repo=https://opendev.org/openstack/designate.git branch=stable/2024.1
Mohammed Naser05795e52024-06-26 07:52:19 -04007ARG DESIGNATE_GIT_REF=72777e203ec6f09757ddcd90011013eeafab36c1
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 Naserda994232024-04-13 12:34:01 -040012RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
13pip3 install \
14 --constraint /upper-constraints.txt \
15 /src/designate
16EOF
17
Mohammed Nasercc6868b2025-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