blob: 44d5e453794505a4dacabeee7b98a6bfca33f200 [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 Naser22819092025-03-19 23:37:52 -04006# renovate: name=openstack/cinder repo=https://opendev.org/openstack/cinder.git branch=unmaintained/zed
Mohammed Naserac138d62024-07-12 21:02:01 -04007ARG CINDER_GIT_REF=4aa6590a483901de64e0d162fff11f3d2d7f9977
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04008ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
9RUN git -C /src/cinder fetch --unshallow
Rico Linffe63e72024-04-20 03:13:24 +080010COPY patches/cinder /patches/cinder
11RUN git -C /src/cinder apply --verbose /patches/cinder/*
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040012RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
13pip3 install \
14 --constraint /upper-constraints.txt \
15 /src/cinder \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040016 purestorage \
vexxhost-bot24ede1e2024-10-01 10:14:13 -040017 python-3parclient \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040018 storpool \
19 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040020EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040021ADD --chmod=644 \
22 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/cinder/openstack/zed/storpool.py \
23 /var/lib/openstack/lib/python3.10/site-packages/cinder/volume/drivers/storpool.py
24ADD --chmod=644 \
25 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
26 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040027
Mohammed Naser7bda44d2025-01-18 15:49:44 -050028FROM openstack-python-runtime
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 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 -040033apt-get clean
34rm -rf /var/lib/apt/lists/*
35EOF
36ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
37COPY --from=build --link /var/lib/openstack /var/lib/openstack