vexxhost-bot | 6e0e436 | 2024-06-01 21:24:08 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
vexxhost-bot | 65e04a2 | 2024-06-26 15:46:55 +0200 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | 9149133 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 4 | ARG REGISTRY |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 5 | ARG RELEASE |
| 6 | |
Mohammed Naser | 9149133 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 7 | FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build |
Yaguang Tang | 15873e6 | 2024-09-24 10:34:06 +0800 | [diff] [blame] | 8 | ARG IRONIC_GIT_REF=b9631245859596e53e048e64a17d9d4606169275 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 9 | ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic |
| 10 | RUN git -C /src/ironic fetch --unshallow |
| 11 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/ironic \ |
| 15 | python-dracclient \ |
| 16 | sushy |
| 17 | EOF |
| 18 | |
Mohammed Naser | 9149133 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 19 | FROM ${REGISTRY}/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 20 | RUN <<EOF bash -xe |
| 21 | apt-get update -qq |
| 22 | apt-get install -qq -y --no-install-recommends \ |
Oleksandr K | 4aae76e | 2024-05-19 01:24:08 +0200 | [diff] [blame] | 23 | ethtool ipmitool iproute2 ipxe lshw qemu-block-extra qemu-utils tftpd-hpa |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 24 | apt-get clean |
| 25 | rm -rf /var/lib/apt/lists/* |
| 26 | EOF |
| 27 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |