blob: 2047e279f73fa7403e4a17d8f87d92620eba5f72 [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 Nasere786d962024-06-26 01:08:34 -04003# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser49aa2332025-02-17 16:53:31 -05006ARG IRONIC_GIT_REF=5aa51d6985d25acd6abfb161c62c66facc20a6ca
Mohammed Naserda994232024-04-13 12:34:01 -04007ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic
8RUN git -C /src/ironic fetch --unshallow
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -05009RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
10uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040011 --constraint /upper-constraints.txt \
12 /src/ironic \
13 python-dracclient \
14 sushy
15EOF
16
Mohammed Naser564caa82025-01-18 15:49:44 -050017FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040018RUN <<EOF bash -xe
19apt-get update -qq
20apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020021 ethtool ipmitool iproute2 ipxe lshw qemu-block-extra qemu-utils tftpd-hpa
Mohammed Naserda994232024-04-13 12:34:01 -040022apt-get clean
23rm -rf /var/lib/apt/lists/*
24EOF
25COPY --from=build --link /var/lib/openstack /var/lib/openstack