Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | e786d96 | 2024-06-26 01:08:34 -0400 | [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 | 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 NOVA_GIT_REF=c199becf52267ba37c5191f6f82e29bb5232b607 |
| 8 | ADD --keep-git-dir=true https://opendev.org/openstack/nova.git#${NOVA_GIT_REF} /src/nova |
| 9 | RUN git -C /src/nova fetch --unshallow |
Mohammed Naser | 5e2440b | 2024-07-05 10:52:22 -0400 | [diff] [blame] | 10 | COPY patches/nova /patches/nova |
| 11 | RUN git -C /src/nova apply --verbose /patches/nova/* |
Oleksandr K. | 66bb947 | 2024-07-18 01:25:23 +0200 | [diff] [blame^] | 12 | ARG SCHEDULER_FILTERS_GIT_REF=eb17f39c68606cca7ec68bf3e40d58e0954326ee |
| 13 | ADD --keep-git-dir=true https://github.com/vexxhost/nova-scheduler-filters.git#${SCHEDULER_FILTERS_GIT_REF} /src/nova-scheduler-filters |
| 14 | RUN git -C /src/nova-scheduler-filters fetch --unshallow |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 15 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 16 | pip3 install \ |
| 17 | --constraint /upper-constraints.txt \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 18 | /src/nova \ |
Oleksandr K. | 66bb947 | 2024-07-18 01:25:23 +0200 | [diff] [blame^] | 19 | /src/nova-scheduler-filters \ |
Mohammed Naser | fd2db85 | 2024-05-16 22:24:46 +0200 | [diff] [blame] | 20 | python-ironicclient \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 21 | storpool \ |
| 22 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 23 | EOF |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 24 | ADD --chmod=644 \ |
| 25 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \ |
| 26 | /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] | 27 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 28 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 29 | ADD https://github.com/novnc/noVNC.git#v1.4.0 /usr/share/novnc |
| 30 | RUN <<EOF bash -xe |
| 31 | apt-get update -qq |
| 32 | apt-get install -qq -y --no-install-recommends \ |
Oleksandr K | 4aae76e | 2024-05-19 01:24:08 +0200 | [diff] [blame] | 33 | ceph-common genisoimage iproute2 libosinfo-bin lsscsi ndctl nvme-cli openssh-client ovmf python3-libvirt python3-rados python3-rbd qemu-efi-aarch64 qemu-block-extra qemu-utils sysfsutils udev util-linux |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 34 | apt-get clean |
| 35 | rm -rf /var/lib/apt/lists/* |
| 36 | EOF |
| 37 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |