blob: 86e6996c6e4b5c3f59bd58d349b0c91da7039a9c [file] [log] [blame]
Mohammed Naser7bda44d2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Yaguang Tangae1f4102024-12-13 22:27:22 +08003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04004
Mohammed Naser7bda44d2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Yaguang Tange2c7a682024-09-24 10:34:08 +08006ARG IRONIC_GIT_REF=d0fb7bce54e9d241a4442ef2347ac51ee1f4d7af
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04007ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic
8RUN git -C /src/ironic fetch --unshallow
9RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
10pip3 install \
11 --constraint /upper-constraints.txt \
12 /src/ironic \
13 python-dracclient \
14 sushy
15EOF
16
Mohammed Naser7bda44d2025-01-18 15:49:44 -050017FROM openstack-python-runtime
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040018RUN <<EOF bash -xe
19apt-get update -qq
20apt-get install -qq -y --no-install-recommends \
vexxhost-bot1cc59942024-05-20 16:04:26 +020021 ethtool ipmitool iproute2 ipxe lshw qemu-block-extra qemu-utils tftpd-hpa
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040022apt-get clean
23rm -rf /var/lib/apt/lists/*
24EOF
25COPY --from=build --link /var/lib/openstack /var/lib/openstack