Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | 735efe2 | 2024-06-26 23:46:25 -0400 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Yaguang Tang | b81c949 | 2024-07-09 04:12:03 +0800 | [diff] [blame] | 6 | ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder |
| 8 | RUN git -C /src/cinder fetch --unshallow |
| 9 | COPY patches/cinder /patches/cinder |
| 10 | RUN git -C /src/cinder apply --verbose /patches/cinder/* |
| 11 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/cinder \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 15 | purestorage \ |
vexxhost-bot | 0fe4b4a | 2024-10-01 11:10:48 -0400 | [diff] [blame] | 16 | python-3parclient \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 17 | storpool \ |
| 18 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | EOF |
| 20 | |
Mohammed Naser | cc6868b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 21 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 22 | RUN <<EOF bash -xe |
| 23 | apt-get update -qq |
| 24 | apt-get install -qq -y --no-install-recommends \ |
Mohammed Naser | c806af1 | 2025-01-31 10:58:24 -0500 | [diff] [blame] | 25 | ceph-common dmidecode lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | apt-get clean |
| 27 | rm -rf /var/lib/apt/lists/* |
| 28 | EOF |
| 29 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 30 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |