blob: 0cb3d72ce7bd89654b675196e6be4e19af9b66ab [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 Naser30004232025-02-20 16:43:21 -05003# Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser49aa2332025-02-17 16:53:31 -05006ARG DESIGNATE_GIT_REF=505ea9b1245e07b28e12c1be3ca5d5e86d77efaf
Mohammed Naserda994232024-04-13 12:34:01 -04007ADD --keep-git-dir=true https://opendev.org/openstack/designate.git#${DESIGNATE_GIT_REF} /src/designate
8RUN git -C /src/designate fetch --unshallow
Rico Lin54df64a2024-04-16 05:30:25 +08009COPY patches/designate /patches/designate
10RUN git -C /src/designate apply --verbose /patches/designate/*
Mohammed Naserda994232024-04-13 12:34:01 -040011RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
12pip3 install \
13 --constraint /upper-constraints.txt \
14 /src/designate
15EOF
16
Mohammed Naser564caa82025-01-18 15:49:44 -050017FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040018RUN <<EOF bash -xe
19apt-get update -qq
20apt-get install -qq -y --no-install-recommends \
21 bind9utils
22apt-get clean
23rm -rf /var/lib/apt/lists/*
24EOF
25COPY --from=build --link /var/lib/openstack /var/lib/openstack