Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | 735efe2 | 2024-06-26 23:46:25 -0400 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM ubuntu AS helm |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 6 | ARG TARGETOS |
| 7 | ARG TARGETARCH |
| 8 | ARG HELM_VERSION=3.14.0 |
| 9 | ADD https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz /helm.tar.gz |
| 10 | RUN tar -xzf /helm.tar.gz |
| 11 | RUN mv /${TARGETOS}-${TARGETARCH}/helm /usr/bin/helm |
| 12 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 13 | FROM openstack-venv-builder AS build |
Mohammed Naser | 05795e5 | 2024-06-26 07:52:19 -0400 | [diff] [blame] | 14 | ARG MAGNUM_GIT_REF=2045ffb5ccbfb7873228eba9a6cecc1f65f4ab3f |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 15 | ADD --keep-git-dir=true https://opendev.org/openstack/magnum.git#${MAGNUM_GIT_REF} /src/magnum |
| 16 | RUN git -C /src/magnum fetch --unshallow |
vexxhost-bot | d3549f1 | 2024-09-25 10:15:59 -0400 | [diff] [blame] | 17 | COPY patches/magnum /patches/magnum |
| 18 | RUN git -C /src/magnum apply --verbose /patches/magnum/* |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
vexxhost-bot | d3549f1 | 2024-09-25 10:15:59 -0400 | [diff] [blame] | 20 | sed -i s/^oslo.db===.*$/oslo.db==14.1.0/ /upper-constraints.txt |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 21 | pip3 install \ |
| 22 | --constraint /upper-constraints.txt \ |
| 23 | /src/magnum \ |
Zuul | f14c72f | 2025-03-13 23:47:11 -0400 | [diff] [blame] | 24 | magnum-cluster-api==0.29.0 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 25 | EOF |
| 26 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 27 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 28 | RUN <<EOF bash -xe |
| 29 | apt-get update -qq |
| 30 | apt-get install -qq -y --no-install-recommends \ |
| 31 | haproxy |
| 32 | apt-get clean |
| 33 | rm -rf /var/lib/apt/lists/* |
| 34 | EOF |
| 35 | COPY --from=helm --link /usr/bin/helm /usr/local/bin/helm |
| 36 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |