blob: 6fd670e8bfc9bee703c25a61c613664239bd2f09 [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 Naserac138d62024-07-12 21:02:01 -04006ARG CINDER_GIT_REF=4aa6590a483901de64e0d162fff11f3d2d7f9977
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04007ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
8RUN git -C /src/cinder fetch --unshallow
Rico Linffe63e72024-04-20 03:13:24 +08009COPY patches/cinder /patches/cinder
10RUN git -C /src/cinder apply --verbose /patches/cinder/*
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040011RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
12pip3 install \
13 --constraint /upper-constraints.txt \
14 /src/cinder \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040015 purestorage \
vexxhost-bot24ede1e2024-10-01 10:14:13 -040016 python-3parclient \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040017 storpool \
18 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040019EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040020ADD --chmod=644 \
21 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/cinder/openstack/zed/storpool.py \
22 /var/lib/openstack/lib/python3.10/site-packages/cinder/volume/drivers/storpool.py
23ADD --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 Naserd28fbaf2024-04-08 17:15:00 -040028RUN <<EOF bash -xe
29apt-get update -qq
30apt-get install -qq -y --no-install-recommends \
Mohammed Naser7ee29252025-01-31 10:58:24 -050031 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 -040032apt-get clean
33rm -rf /var/lib/apt/lists/*
34EOF
35ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
36COPY --from=build --link /var/lib/openstack /var/lib/openstack