Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z |
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 | |
| 6 | FROM registry.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 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 14 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 15 | ARG MAGNUM_GIT_REF=c613ea4e419edc0086116da07e93cf19206746e1 |
| 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 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 19 | pip3 install \ |
| 20 | --constraint /upper-constraints.txt \ |
| 21 | /src/magnum \ |
Mohammed Naser | 0f180c5 | 2024-06-14 16:49:25 -0400 | [diff] [blame] | 22 | magnum-cluster-api==0.19.1 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 23 | EOF |
| 24 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 25 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | RUN <<EOF bash -xe |
| 27 | apt-get update -qq |
| 28 | apt-get install -qq -y --no-install-recommends \ |
| 29 | haproxy |
| 30 | apt-get clean |
| 31 | rm -rf /var/lib/apt/lists/* |
| 32 | EOF |
| 33 | COPY --from=helm --link /usr/bin/helm /usr/local/bin/helm |
| 34 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |