Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | 735efe2 | 2024-06-26 23:46:25 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
Yaguang Tang | 1d50b80 | 2024-12-13 03:35:11 +0800 | [diff] [blame] | 6 | FROM harbor.atmosphere.dev/library/ubuntu:${RELEASE} AS helm |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ARG TARGETOS |
| 8 | ARG TARGETARCH |
| 9 | ARG HELM_VERSION=3.14.0 |
| 10 | ADD https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz /helm.tar.gz |
| 11 | RUN tar -xzf /helm.tar.gz |
| 12 | RUN mv /${TARGETOS}-${TARGETARCH}/helm /usr/bin/helm |
| 13 | |
Yaguang Tang | 1d50b80 | 2024-12-13 03:35:11 +0800 | [diff] [blame] | 14 | FROM harbor.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | 05795e5 | 2024-06-26 07:52:19 -0400 | [diff] [blame] | 15 | ARG MAGNUM_GIT_REF=2045ffb5ccbfb7873228eba9a6cecc1f65f4ab3f |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 16 | ADD --keep-git-dir=true https://opendev.org/openstack/magnum.git#${MAGNUM_GIT_REF} /src/magnum |
| 17 | RUN git -C /src/magnum fetch --unshallow |
vexxhost-bot | d3549f1 | 2024-09-25 10:15:59 -0400 | [diff] [blame] | 18 | COPY patches/magnum /patches/magnum |
| 19 | RUN git -C /src/magnum apply --verbose /patches/magnum/* |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 20 | 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] | 21 | 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] | 22 | pip3 install \ |
| 23 | --constraint /upper-constraints.txt \ |
| 24 | /src/magnum \ |
vexxhost-bot | 9e42d8b | 2025-01-14 03:18:30 -0500 | [diff] [blame^] | 25 | magnum-cluster-api==0.24.2 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | EOF |
| 27 | |
Yaguang Tang | 1d50b80 | 2024-12-13 03:35:11 +0800 | [diff] [blame] | 28 | FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 29 | RUN <<EOF bash -xe |
| 30 | apt-get update -qq |
| 31 | apt-get install -qq -y --no-install-recommends \ |
| 32 | haproxy |
| 33 | apt-get clean |
| 34 | rm -rf /var/lib/apt/lists/* |
| 35 | EOF |
| 36 | COPY --from=helm --link /usr/bin/helm /usr/local/bin/helm |
| 37 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |