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