Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Yaguang Tang | e8608fb | 2024-12-17 18:30:35 +0800 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2024-12-17T01:27:44Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Yaguang Tang | b81c949 | 2024-07-09 04:12:03 +0800 | [diff] [blame] | 6 | ARG NOVA_GIT_REF=11301e7e3f0d81a3368632f90608e30d9c647111 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ADD --keep-git-dir=true https://opendev.org/openstack/nova.git#${NOVA_GIT_REF} /src/nova |
| 8 | RUN git -C /src/nova fetch --unshallow |
Mohammed Naser | e588507 | 2024-07-05 10:52:24 -0400 | [diff] [blame] | 9 | COPY patches/nova /patches/nova |
| 10 | RUN git -C /src/nova apply --verbose /patches/nova/* |
vexxhost-bot | 1ec6125 | 2024-12-17 00:42:21 -0500 | [diff] [blame] | 11 | ARG SCHEDULER_FILTERS_GIT_REF=77ed1c2ca70f4166a6d0995c7d3d90822f0ca6c0 |
vexxhost-bot | bba274a | 2024-07-19 07:08:16 +0200 | [diff] [blame] | 12 | ADD --keep-git-dir=true https://github.com/vexxhost/nova-scheduler-filters.git#${SCHEDULER_FILTERS_GIT_REF} /src/nova-scheduler-filters |
| 13 | RUN git -C /src/nova-scheduler-filters fetch --unshallow |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 14 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 15 | pip3 install \ |
| 16 | --constraint /upper-constraints.txt \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 17 | /src/nova \ |
vexxhost-bot | bba274a | 2024-07-19 07:08:16 +0200 | [diff] [blame] | 18 | /src/nova-scheduler-filters \ |
Mohammed Naser | fd2db85 | 2024-05-16 22:24:46 +0200 | [diff] [blame] | 19 | python-ironicclient \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 20 | storpool \ |
| 21 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 22 | EOF |
Mohammed Naser | 9f0a700 | 2025-02-17 16:52:51 -0500 | [diff] [blame] | 23 | ADD --chmod=644 \ |
| 24 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \ |
| 25 | /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 27 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 28 | ADD https://github.com/novnc/noVNC.git#v1.4.0 /usr/share/novnc |
| 29 | RUN <<EOF bash -xe |
| 30 | apt-get update -qq |
| 31 | apt-get install -qq -y --no-install-recommends \ |
Mohammed Naser | c806af1 | 2025-01-31 10:58:24 -0500 | [diff] [blame] | 32 | ceph-common dmidecode genisoimage iproute2 libosinfo-bin lsscsi ndctl nfs-common nvme-cli openssh-client ovmf python3-libvirt python3-rados python3-rbd qemu-efi-aarch64 qemu-block-extra qemu-utils sysfsutils udev util-linux swtpm swtpm-tools libtpms0 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 33 | apt-get clean |
| 34 | rm -rf /var/lib/apt/lists/* |
| 35 | EOF |
| 36 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |