blob: 1f8ca6502668622edaf4246756f40978f46cf56c [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
ricolin476613c2025-01-14 11:48:56 +08002# Atmosphere-Rebuild-Time: 2025-01-13T13:53:44Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04003
Mohammed Naseraa212e62025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04005ARG RELEASE
6
Mohammed Naseraa212e62025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserac138d62024-07-12 21:02:01 -04008ARG CINDER_GIT_REF=4aa6590a483901de64e0d162fff11f3d2d7f9977
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04009ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
10RUN git -C /src/cinder fetch --unshallow
Rico Linffe63e72024-04-20 03:13:24 +080011COPY patches/cinder /patches/cinder
12RUN git -C /src/cinder apply --verbose /patches/cinder/*
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040013RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
14pip3 install \
15 --constraint /upper-constraints.txt \
16 /src/cinder \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040017 purestorage \
vexxhost-bot24ede1e2024-10-01 10:14:13 -040018 python-3parclient \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040019 storpool \
20 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040021EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040022ADD --chmod=644 \
23 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/cinder/openstack/zed/storpool.py \
24 /var/lib/openstack/lib/python3.10/site-packages/cinder/volume/drivers/storpool.py
25ADD --chmod=644 \
26 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
27 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040028
Mohammed Naseraa212e62025-01-15 16:49:44 -050029FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040030RUN <<EOF bash -xe
31apt-get update -qq
32apt-get install -qq -y --no-install-recommends \
vexxhost-bot5147af22024-11-29 12:26:49 -050033 ceph-common lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040034apt-get clean
35rm -rf /var/lib/apt/lists/*
36EOF
37ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
38COPY --from=build --link /var/lib/openstack /var/lib/openstack