vexxhost-bot | a62d931 | 2024-06-01 21:13:59 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
vexxhost-bot | 4a8f091 | 2024-06-28 22:34:23 +0200 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | 19c6c8a | 2024-04-18 01:47:10 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
| 6 | FROM registry.atmosphere.dev/library/ubuntu:${RELEASE} AS helm |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -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 | |
Mohammed Naser | 19c6c8a | 2024-04-18 01:47:10 -0400 | [diff] [blame] | 14 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 15 | ARG MAGNUM_GIT_REF=0ee979099a01ae2c8b1b5d6757897a8993e4e34c |
| 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 |
| 18 | COPY patches/magnum /patches/magnum |
| 19 | RUN git -C /src/magnum apply --verbose /patches/magnum/* |
| 20 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 21 | pip3 install \ |
| 22 | --constraint /upper-constraints.txt \ |
| 23 | /src/magnum \ |
vexxhost-bot | a3eb6f6 | 2024-09-24 18:32:14 -0400 | [diff] [blame] | 24 | magnum-cluster-api==0.22.1 |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 25 | EOF |
| 26 | |
Mohammed Naser | 19c6c8a | 2024-04-18 01:47:10 -0400 | [diff] [blame] | 27 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -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 |