blob: f06adf27e6996c405930c803a803cf899048816a [file] [log] [blame]
Mohammed Naser7bda44d2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Nasercf7c06d2025-02-18 09:25:27 -05003# Atmosphere-Rebuild-Time: 2025-02-18T16:06:32Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04004
Mohammed Naser7bda44d2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser8a702e42024-07-11 16:15:53 -04006ARG NOVA_GIT_REF=ba71dc50dbba82bbdecb845afea67ad2275897ec
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04007ADD --keep-git-dir=true https://opendev.org/openstack/nova.git#${NOVA_GIT_REF} /src/nova
8RUN git -C /src/nova fetch --unshallow
Rico Lin84d4ae52024-06-06 21:05:59 +08009COPY patches/nova /patches/nova
10RUN git -C /src/nova apply --verbose /patches/nova/*
vexxhost-bot8eef4872024-12-17 00:42:23 -050011ARG SCHEDULER_FILTERS_GIT_REF=77ed1c2ca70f4166a6d0995c7d3d90822f0ca6c0
vexxhost-bot998d3062024-07-19 04:12:06 +020012ADD --keep-git-dir=true https://github.com/vexxhost/nova-scheduler-filters.git#${SCHEDULER_FILTERS_GIT_REF} /src/nova-scheduler-filters
13RUN git -C /src/nova-scheduler-filters fetch --unshallow
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040014RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
15pip3 install \
16 --constraint /upper-constraints.txt \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040017 /src/nova \
vexxhost-bot998d3062024-07-19 04:12:06 +020018 /src/nova-scheduler-filters \
vexxhost-bot1d1b3082024-05-19 00:41:48 +010019 python-ironicclient \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040020 storpool \
21 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040022EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040023ADD --chmod=644 \
24 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
25 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040026
Mohammed Naser7bda44d2025-01-18 15:49:44 -050027FROM openstack-python-runtime
Mohammed Naser09467452024-04-13 14:48:15 -040028ADD https://github.com/novnc/noVNC.git#v1.4.0 /usr/share/novnc
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040029RUN <<EOF bash -xe
30apt-get update -qq
31apt-get install -qq -y --no-install-recommends \
Mohammed Naser7ee29252025-01-31 10:58:24 -050032 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 Naserd28fbaf2024-04-08 17:15:00 -040033apt-get clean
34rm -rf /var/lib/apt/lists/*
35EOF
36COPY --from=build --link /var/lib/openstack /var/lib/openstack