blob: d81cf5e134285c6567aff42384cc333ff65461eb [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 ubuntu AS helm
Mohammed Naserda994232024-04-13 12:34:01 -04006ARG TARGETOS
7ARG TARGETARCH
8ARG HELM_VERSION=3.14.0
9ADD https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz /helm.tar.gz
10RUN tar -xzf /helm.tar.gz
11RUN mv /${TARGETOS}-${TARGETARCH}/helm /usr/bin/helm
12
Mohammed Naser564caa82025-01-18 15:49:44 -050013FROM openstack-venv-builder AS build
Mohammed Naser8ed5c8e2025-03-19 23:37:52 -040014# renovate: name=openstack/magnum repo=https://opendev.org/openstack/magnum.git branch=stable/2024.2
Mohammed Naser49aa2332025-02-17 16:53:31 -050015ARG MAGNUM_GIT_REF=db197e08a09da93062fc4222180051dadfc0f0d8
Mohammed Naserda994232024-04-13 12:34:01 -040016ADD --keep-git-dir=true https://opendev.org/openstack/magnum.git#${MAGNUM_GIT_REF} /src/magnum
17RUN git -C /src/magnum fetch --unshallow
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050018RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
19uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040020 --constraint /upper-constraints.txt \
21 /src/magnum \
Zuul6f66b072025-03-13 23:47:12 -040022 magnum-cluster-api==0.29.0
Mohammed Naserda994232024-04-13 12:34:01 -040023EOF
24
Mohammed Naser564caa82025-01-18 15:49:44 -050025FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040026RUN <<EOF bash -xe
27apt-get update -qq
28apt-get install -qq -y --no-install-recommends \
29 haproxy
30apt-get clean
31rm -rf /var/lib/apt/lists/*
32EOF
33COPY --from=helm --link /usr/bin/helm /usr/local/bin/helm
34COPY --from=build --link /var/lib/openstack /var/lib/openstack