blob: 1e47692b23f73aadbacdb8b5498986d2b8d42a35 [file] [log] [blame]
Mohammed Nasercc6868b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser735efe22024-06-26 23:46:25 -04003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Nasercc6868b2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naserfe5b7352025-03-19 23:37:52 -04006# renovate: name=openstack/ironic repo=https://opendev.org/openstack/ironic.git branch=stable/2024.1
Yaguang Tange929ac22024-09-24 10:31:16 +08007ARG IRONIC_GIT_REF=19de7ae2f48705cfa0e59d0642cec3cca7b6ca22
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic
9RUN git -C /src/ironic fetch --unshallow
10RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
11pip3 install \
12 --constraint /upper-constraints.txt \
13 /src/ironic \
14 python-dracclient \
15 sushy
16EOF
17
Mohammed Nasercc6868b2025-01-18 15:49:44 -050018FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040019RUN <<EOF bash -xe
20apt-get update -qq
21apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020022 ethtool ipmitool iproute2 ipxe lshw qemu-block-extra qemu-utils tftpd-hpa
Mohammed Naserda994232024-04-13 12:34:01 -040023apt-get clean
24rm -rf /var/lib/apt/lists/*
25EOF
26COPY --from=build --link /var/lib/openstack /var/lib/openstack