blob: a85ad42482a607c9e7e45cc82af6a47a4c7c7413 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naser142dc922024-06-20 21:19:25 -04002# Atmosphere-Rebuild-Time: 2024-06-17T13:34:17Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naser142dc922024-06-20 21:19:25 -04007ARG NOVA_GIT_REF=386ab56ed5bde2bc21cbf9a1361cb3700dad8d81
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/nova.git#${NOVA_GIT_REF} /src/nova
9RUN git -C /src/nova fetch --unshallow
10RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
11pip3 install \
12 --constraint /upper-constraints.txt \
Mohammed Naser87fe1202024-04-29 19:48:02 -040013 /src/nova \
Mohammed Naserfd2db852024-05-16 22:24:46 +020014 python-ironicclient \
Mohammed Naser87fe1202024-04-29 19:48:02 -040015 storpool \
16 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040017EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040018ADD --chmod=644 \
Mohammed Naser142dc922024-06-20 21:19:25 -040019 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040020 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040021
Mohammed Naserd30f18d2024-04-17 01:20:43 -040022FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040023ADD https://github.com/novnc/noVNC.git#v1.4.0 /usr/share/novnc
24RUN <<EOF bash -xe
25apt-get update -qq
26apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020027 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 Naserda994232024-04-13 12:34:01 -040028apt-get clean
29rm -rf /var/lib/apt/lists/*
30EOF
31COPY --from=build --link /var/lib/openstack /var/lib/openstack