blob: 3c7a0fbc4493cd7fcb6d39054b04e39c8b70a792 [file] [log] [blame]
Mohammed Nasercc6868b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser735efe22024-06-26 23:46:25 -04003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Nasercc6868b2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Yaguang Tangb81c9492024-07-09 04:12:03 +08006ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952
Mohammed Naserda994232024-04-13 12:34:01 -04007ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
8RUN git -C /src/cinder fetch --unshallow
9COPY patches/cinder /patches/cinder
10RUN git -C /src/cinder apply --verbose /patches/cinder/*
11RUN --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 Naser87fe1202024-04-29 19:48:02 -040015 purestorage \
vexxhost-bot0fe4b4a2024-10-01 11:10:48 -040016 python-3parclient \
Mohammed Naser87fe1202024-04-29 19:48:02 -040017 storpool \
18 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040019EOF
20
Mohammed Nasercc6868b2025-01-18 15:49:44 -050021FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN <<EOF bash -xe
23apt-get update -qq
24apt-get install -qq -y --no-install-recommends \
Mohammed Naserc806af12025-01-31 10:58:24 -050025 ceph-common dmidecode lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux
Mohammed Naserda994232024-04-13 12:34:01 -040026apt-get clean
27rm -rf /var/lib/apt/lists/*
28EOF
29ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
30COPY --from=build --link /var/lib/openstack /var/lib/openstack